summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_libevdev
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-17 00:34:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-17 00:34:48 +0200
commita1c5b014da305b43da45b57e76c2c273270ad4b4 (patch)
tree3e0b992b72e639386410485ea8eae937fd8ef4d0 /ftnoir_protocol_libevdev
parent4fc7efa31f385baaaf8db16a3fc59c695dd5ee47 (diff)
Pretend to be a joystick a bit harder for udev
Diffstat (limited to 'ftnoir_protocol_libevdev')
-rw-r--r--ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp
index 74986299..dec4f847 100644
--- a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp
+++ b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp
@@ -46,6 +46,9 @@ FTNoIR_Protocol::FTNoIR_Protocol() : dev(NULL), uidev(NULL)
CHECK_LIBEVDEV(libevdev_enable_event_code(dev, EV_ABS, ABS_RZ, &absinfo));
+ CHECK_LIBEVDEV(libevdev_enable_event_type(dev, EV_KEY));
+ CHECK_LIBEVDEV(libevdev_enable_event_code(dev, EV_KEY, BTN_JOYSTICK, NULL));
+
CHECK_LIBEVDEV(libevdev_uinput_create_from_device(dev, LIBEVDEV_UINPUT_OPEN_MANAGED, &uidev));
return;