Commit Graph

13 Commits

Author SHA1 Message Date
pixl
fe72e51155
Do not register EV_REL axis by default
Fixes #244, #245, #281.
2022-01-02 02:54:41 -05:00
max
1f02882971 Enable axis in virtual_input device only when needed 2020-12-21 11:50:04 +01:00
max
15de10344a In error case set device and ui_device to nullptr 2020-12-15 13:59:06 +01:00
max
8280bc2505 Enable some keys by default and enable more on request
if the user chooses to use such keys in the config.
2020-12-14 22:10:07 +01:00
max
f8eb77cad7 Register keys for keypress only when needed
there seems to be an issue that with too many registered events some window
manager cannot recognize the device as input device with systemd 247.

PixlOne#166
2020-12-14 20:51:47 +01:00
Kristóf Marussy
911e91eeeb
Enable fewer EV_KEY events in InputDevice
Fixes #166

Starting with systemd 247 (?), desktop environments fail to recognize
the virtual input device if it has too many enabled libinput events.

It seems like KEY_ROTATE_LOCK_TOGGLE as the highest enabled event is a
good limit. This is the highest evdev event mapped by xkb, so the
usefulness higher events is limited, anyways.
2020-12-14 19:49:51 +01:00
Kristóf Marussy
c261b6582c
Cleanup in InputDevice 2020-12-14 19:49:28 +01:00
pixl
b554d32cf3
Fix InputDevice on distros without hires axes 2020-08-21 21:02:24 -04:00
pixl
63ecbc411e
Fix InputDevice missing header on some systems 2020-08-21 20:09:02 -04:00
pixl
c1423e345e
Support HiresScroll gesture remapping
This commit allows HiresScroll (when target is true) to map the up and
down events to gestures that support it (i.e.AxisGesture/
IntervalGesture). This check is done by checking if wheelCompatibility()
is true.

This also allows hires scroll events to send low-res scroll events as
well.

TODO: Fix bug w/ Chromium (and some other programs?) where mapping
scroll wheel to REL_WHEEL_HI_RES will cause the program to skip events
occassionally. I have literally been stuck on this bug for a week and I
still don't know what causes it. evtest shows proper scroll events,
Firefox works fine, and libinput test-gui reports proper scrolling.
2020-08-21 16:05:20 -04:00
pixl
d3d4a2755a
Apply clang-tidy inspections 2020-07-14 00:12:40 -04:00
pixl
10bb10e5c5
Add Axis gesture 2020-07-12 16:16:24 -04:00
pixl
5bf5dc75b5
Implement RemapButton feature
Many changes were made here, too many to list here.
2020-07-12 16:16:22 -04:00