mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-22 06:47:12 -04:00
Merge branch 'cursor-devices' into 'master'
Draft: cursor: expose input devices Closes #3398 See merge request wlroots/wlroots!3577
This commit is contained in:
commit
019c601d00
3 changed files with 21 additions and 23 deletions
|
|
@ -363,16 +363,16 @@ int main(int argc, char *argv[]) {
|
|||
state.cursor_axis.notify = handle_cursor_axis;
|
||||
|
||||
// touch events
|
||||
wl_signal_add(&state.cursor->events.touch_up, &state.touch_up);
|
||||
wl_signal_add(&state.cursor->touch.events.up, &state.touch_up);
|
||||
state.touch_up.notify = handle_touch_up;
|
||||
|
||||
wl_signal_add(&state.cursor->events.touch_down, &state.touch_down);
|
||||
wl_signal_add(&state.cursor->touch.events.down, &state.touch_down);
|
||||
state.touch_down.notify = handle_touch_down;
|
||||
|
||||
wl_signal_add(&state.cursor->events.touch_motion, &state.touch_motion);
|
||||
wl_signal_add(&state.cursor->touch.events.motion, &state.touch_motion);
|
||||
state.touch_motion.notify = handle_touch_motion;
|
||||
|
||||
wl_signal_add(&state.cursor->events.touch_cancel, &state.touch_cancel);
|
||||
wl_signal_add(&state.cursor->touch.events.cancel, &state.touch_cancel);
|
||||
state.touch_cancel.notify = handle_touch_cancel;
|
||||
|
||||
wl_signal_add(&wlr->events.new_input, &state.new_input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue