Skip to content

Add mouse-movement events #8

@idupree

Description

@idupree

Currently you can synthesize mouse-clicks in the same way as if a mouse-button were a key (as of #7 ; an example code name is key.CODE_BTN_LEFT).

We would like be able to create mouse movement too. This is example C code using uinput to move the mouse:
http://git.nosuchfile.org/?p=uinput-sample.git;a=blob_plain;f=uinput-sample.c;hb=HEAD
as linked on
http://thiemonge.org/getting-started-with-uinput

I don't have quite a good enough sense of the gostwriter code organization yet. Where do you think is the best way to add another uinput event type? For event types, we currently have EV_KEY and mouse-movement would be EV_REL.

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