Commit graph

7 commits

Author SHA1 Message Date
Daniel Barlow
e7b0bae792 add support for touch events (WIP)
This is tested with Gtk clients. There are a number of TODO items:

- hardcoded scaling for mapping the touch co-ordinate system
into layout co-ordinates (works on my Pinephone :-).

- we should send events to the client no matter what the Lua handler
returns (I think the code to not do this is broken
anyway...). Instead, if the handler returns true we should send the
client a touch cancel event.

- maybe there's a better way to deal with seat capabilities than
adding a "touchpads" field to kiwmi_input
2022-08-14 21:54:28 +01:00
tiosgz
a12e670657 input: map pointer to output if possible
This is needed in order for wlroots to interpret some values (mostly
coords of absolute input events) correctly. It for example fixes how the
pointer behaves with WLR_WL_OUTPUTS=2.

In order to also map the pointer/output pair when the pointer is created
before the output, a list of pointers has to be managed, which wasn't
needed until now.
2022-07-14 14:15:51 +00:00
buffet
9732952cc4 Move seat into extra file 2020-01-18 15:56:12 +00:00
buffet
b740e7f2d0 Fix memleaks 2020-01-15 20:52:26 +00:00
buffet
60c1c01616 Add keyboard to Lua API, make everything on lua->L balanced 2020-01-04 23:23:15 +00:00
buffet
abda3d3a0e Add auto focus for views and basic keyboard handling 2019-12-24 15:43:36 +00:00
buffet
83eef45530 Move headers 2019-10-16 18:51:18 +02:00
Renamed from include/kiwmi/input/input.h (Browse further)