From fe72e51155959623659ef41ba073826fedc48f01 Mon Sep 17 00:00:00 2001 From: pixl Date: Sun, 2 Jan 2022 02:54:41 -0500 Subject: [PATCH] Do not register EV_REL axis by default Fixes #244, #245, #281. --- src/logid/InputDevice.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/logid/InputDevice.cpp b/src/logid/InputDevice.cpp index af729a8..8bc93dc 100644 --- a/src/logid/InputDevice.cpp +++ b/src/logid/InputDevice.cpp @@ -57,8 +57,6 @@ InputDevice::InputDevice(const char* name) } libevdev_enable_event_type(device, EV_REL); - for(unsigned int i = 0; i < REL_CNT; i++) - libevdev_enable_event_code(device, EV_REL, i, nullptr); int err = libevdev_uinput_create_from_device(device, LIBEVDEV_UINPUT_OPEN_MANAGED, &ui_device);