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:
Jonas Ådahl 2014-04-23 09:54:49 +02:00 committed by Jonas Ådahl
parent 54431242ce
commit 0f4854982c

View file

@ -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)
{