min(127, max(-127, int(self.x * speed))) & 255
the lower boundary should be -128.
min(127, max(-128, int(self.x * speed))) & 255
Just realized this was your code - noticed it at https://github.com/quangthanh010290/keyboard_mouse_emulate_on_raspberry and commented there.
You wouldn't have any ideas what would be needed to send absolute coordinates. Can that be done while emulating a mouse or would you need to emulate some other device class?
the lower boundary should be -128.
Just realized this was your code - noticed it at https://github.com/quangthanh010290/keyboard_mouse_emulate_on_raspberry and commented there.
You wouldn't have any ideas what would be needed to send absolute coordinates. Can that be done while emulating a mouse or would you need to emulate some other device class?