Do not register EV_REL axis by default

Fixes #244, #245, #281.
This commit is contained in:
pixl 2022-01-02 02:54:41 -05:00
parent 53c9c0a5e4
commit fe72e51155
No known key found for this signature in database
GPG Key ID: 1866C148CD593B6E

View File

@ -57,8 +57,6 @@ InputDevice::InputDevice(const char* name)
} }
libevdev_enable_event_type(device, EV_REL); 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, int err = libevdev_uinput_create_from_device(device,
LIBEVDEV_UINPUT_OPEN_MANAGED, &ui_device); LIBEVDEV_UINPUT_OPEN_MANAGED, &ui_device);