New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial touch support #170
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request!
} | ||
|
||
static void touch_handle_up(void *data, struct wl_touch *wl_touch, | ||
uint32_t serial, uint32_t time, int32_t id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up issue: handle id
to add support for multitouch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good! One last nit :P
Listen for touch down, motion and up events. Bind 'press' event to 'up' action. bind 'down' and 'motion' to x and y tracking. Implement the button press dispatching as a simple button press that directly calls the touch config binding. Refactor 'button_binding' to 'binding'. Fixes #99
that was a load-bearing semicolon, re-added
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience and for your work!
Listen for touch down, motion and up events.
Nind 'press' event to 'up' action. bind 'down' and 'motion'
to x and y tracking.
Implement the button press dispatching as a simple
'mocked' button press using BTN_TOUCH so it fits in
with the existing button press event structure.
Fixes #99