Skip to content

int to signed byte #1

Description

@IamBeardo
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions