Giter Site home page Giter Site logo

Non-Mac Keyboard + Mouse about bthidhub HOT 4 CLOSED

ruundii avatar ruundii commented on August 18, 2024
Non-Mac Keyboard + Mouse

from bthidhub.

Comments (4)

Dreamsorcerer avatar Dreamsorcerer commented on August 18, 2024

Same issue here, the filter removes all 8 byte commands:
https://github.com/ruundii/bthidhub/blob/master/mouse_message_filter.py#L10

These include all the movement events of a mouse...

I commented out those lines and the mouse works, however the vertical axis is 10x more sensitive than the horizontal axis. The result is that moving the mouse up/down is only just usable at the lowest sensitivity, while move left/right results in the cursor jumping up/down as it moves along because it picks up every little movement on that axis.

from bthidhub.

Dreamsorcerer avatar Dreamsorcerer commented on August 18, 2024

@ruundii Do you have any advise on how to debug these issues? I can see a couple of things that stand out, but not sure how to actually change them.

For example:

  • bthidhub has the X/Y logical minimum/maximum reported as -2047/2047, while my mouse connected to it reports -32768/32768.
  • The events from the mouse on the rpi begin with 8 00, but the events from bthidhub begin with 9 03.

But, I have no idea how to change the values sent initially.
I've also tried changing the prefix in MouseMessageFilter, but this just results in the events not getting sent at all.

from bthidhub.

Dreamsorcerer avatar Dreamsorcerer commented on August 18, 2024

OK, I managed to update the sdp_record.xml, at which point the mouse works properly. I don't think there is a "standard" mouse config you can provide in the sdp record, so it would be better to look at dynamically creating one.

from bthidhub.

Dreamsorcerer avatar Dreamsorcerer commented on August 18, 2024

Let's track this in #23, which should resolve the issue.
I've described a workaround here: #11 (comment)

from bthidhub.

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.