mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
backend/libinput: rework tablet interface
The wlr_libinput_device owns its wlr_tablet and its associated wlr_tablet_tools
This commit is contained in:
parent
4f4dd95223
commit
c8456086a1
4 changed files with 116 additions and 213 deletions
|
|
@ -252,6 +252,9 @@ struct libinput_device *wlr_libinput_get_device_handle(
|
|||
case WLR_INPUT_DEVICE_TOUCH:
|
||||
dev = device_from_touch(wlr_dev->touch);
|
||||
break;
|
||||
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
||||
dev = device_from_tablet(wlr_dev->tablet);
|
||||
break;
|
||||
default:
|
||||
dev = (struct wlr_libinput_input_device *)wlr_dev;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue