Giter VIP home page Giter VIP logo

Comments (3)

kibergus avatar kibergus commented on June 30, 2024 2

Mystery solved. In addition to minimum and maximum we also should specify resolution:

    device.enable(
        libevdev.EV_ABS.ABS_TILT_X,
        libevdev.InputAbsInfo(
            minimum=-6400,
            maximum=6400,
            resolution=6400,
        )
    )
    device.enable(
        libevdev.EV_ABS.ABS_TILT_Y,
        libevdev.InputAbsInfo(
            minimum=-6400,
            maximum=6400,
            resolution=6400,
        )
    )

After that no dirty hack with rescaling are needed.

from remarkable_mouse.

Evidlo avatar Evidlo commented on June 30, 2024

On remarkable 2 the seem to be [-6400, 6400] where 64k correspond to a 90 degree angle.

There's a separate issue for rM2 support, but it's good to know the ranges are different.

But it looks like graphic editor ignores these ranges altogether and requires values in degrees: [-90, 90] range.

I'm surprised Krita doesn't automatically scale the tilt range or that evdev doesn't handle this automatically, as one of the steps in evdev.py is registering the min/max values. We would definitely need to dig deeper to verify that this is the case before adding an option for scaling.

from remarkable_mouse.

Evidlo avatar Evidlo commented on June 30, 2024

This should be fixed in 7.1.0

from remarkable_mouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.