Simon Ser
edbf8bf2ce
input-device: drop wlr_input_device.{vendor,product}
...
These aren't super useful without the bus type. Compositors can
fish back this information from the libinput device if they want to.
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3818
9 months ago
Simon Ser
ee70932422
backend/libinput: use NULL to indicate missing device name
...
libinput guarantees that the name is non-NULL, and an empty string
if unset. However wlroots uses NULL to indicate that an input device
name is unset.
9 months ago
Simon Ser
2d9659d765
backend/libinput: use struct initializers for events
...
This is more readable and consistent with the rest of wlroots.
1 year ago
Alexander Orzechowski
ef4baea0e2
Use wl_signal_emit_mutable
2 years ago
Simon Zeni
aaf787ee56
types/wlr_touch: uniformize events name
3 years ago
Simon Zeni
96ccc50c57
types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch
3 years ago
Simon Zeni
10cbb9fbe1
interface/wlr_touch: rework destroy sequence
...
The destroy callback in wlr_touch_impl has been removed. The function
`wlr_touch_finish` has been introduced to clean up the resources owned by a
wlr_touch.
`wlr_input_device_destroy` no longer destroys the wlr_touch, attempting to
destroy a wlr_touch will result in a no-op.
The field `name` has been added to the wlr_touch_impl to be able to identify
a given wlr_touch device.
3 years ago
Simon Zeni
4f4dd95223
backend/libinput: rework touch interface
...
The wlr_libinput_input_device now owns its wlr_touch, instead of creating
a new wlr_libinput_input_device for it.
3 years ago
Simon Zeni
91ba28e020
backend/libinput: remove wlr_input_device_impl
3 years ago
Simon Zeni
edfb332b24
types/wlr_touch: add base wlr_input_device
...
wlr_touch now owns its wlr_input_device. It will be initialized when the
tablet tool is initialized, and finished when the touch is destroyed.
3 years ago
Simon Ser
2d36d7fb67
backend/libinput: send touch frame events
3 years ago
Andri Yngvason
e19f48d1e4
backend: touch: Fixup incomplete patch for single touch devices.
...
All instances of libinput_event_touch_get_slot need to be converted to
libinput_event_touch_get_seat_slot for things to work.
5 years ago
Andri Yngvason
4f4d3cf2a2
backend: touch: Assign good ids to single touch devices
...
libinput_event_touch_get_slot always returns -1 for single touch devices. Using
libinput_event_touch_get_seat_slot instead ensures that they are assigned actual
slot ids.
Also, this is what Weston does, so this change yields a more consistent
behaviour between different compositors.
5 years ago
emersion
7cbef15206
util: add wlr_ prefix to log symbols
7 years ago
emersion
71ca45e2c0
Make sure we don't use others' prefixes
7 years ago
emersion
b0d99f5c67
Remove wlr_ prefix from local symbols
7 years ago
Drew DeVault
324b9d910d
Remove width_mm from wlr_touch events
7 years ago
emersion
c2e1474010
Reformat all #include directives
7 years ago
emersion
36ead80cd1
Make wlr_signal_emit_safe private
7 years ago
emersion
5e58d46cc1
Add wlr_signal_emit_safe
7 years ago
Tony Crisci
f61986e8db
rename touch slot to touch id
7 years ago
Tony Crisci
875a5b446f
remove time usec
7 years ago
Tony Crisci
a224e74fad
refactor input time_sec to time_msec
7 years ago
Tony Crisci
c914697676
add device to touch events
7 years ago
Dominique Martinet
ba20d5b3ca
Refactor out wlr_touch_state
7 years ago
Dominique Martinet
5c82d2f5c3
libinput backend: massive renaming
...
- 'libinput' (backend's) to libinput_context
- 'device' (libinput_device) to libinput_dev
- 'dev' (wlr_device) to wlr_dev
- 'devices' lists tangling of libinput devices to wlr_devices
- 'devices' list of wlr_devices in backend state to wlr_device_lists
7 years ago
Dominique Martinet
0663b6d1e1
Build libinput events on the stack instead of allocating
7 years ago
Scott Anderson
cb4d50e22c
Changed header paths.
7 years ago
Drew DeVault
3d71969b2a
Make event names consistent
8 years ago
Drew DeVault
f4453d104d
Reorganize wlr-common
8 years ago
Drew DeVault
fd91244e83
Update everyone to use new headers
8 years ago
Drew DeVault
3f24f8a1be
Flesh out touch events and add demo
8 years ago
Drew DeVault
d6905f86cb
Allocate wlr_touch devices
8 years ago