mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 13:00:15 +01:00
evdev: Define KEY_LIGHTS_TOGGLE macro if missing
When building on a system with an older kernel, some KEY_ macros might be missing. To be able to build on such system, define them if they are missing. It is probably better to keep our own copy of input.h somewhere in our tree, and include that one instead of the system one, but that can be added later. Signed-off-by: Jonas Ådahl <jadahl@opera.com>
This commit is contained in:
parent
54431242ce
commit
0f4854982c
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@
|
|||
|
||||
#define DEFAULT_AXIS_STEP_DISTANCE li_fixed_from_int(10)
|
||||
|
||||
#ifndef KEY_LIGHTS_TOGGLE
|
||||
#define KEY_LIGHTS_TOGGLE 0x160
|
||||
#endif
|
||||
|
||||
void
|
||||
evdev_device_led_update(struct evdev_device *device, enum libinput_led leds)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue