From aaf7ff9a6ce87ef0ed8817cf9808abf04ea72b1b Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 5 May 2018 18:10:05 -0700 Subject: [PATCH] device: Define BTN_DPAD* if not present --- panda/src/device/evdevInputDevice.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/panda/src/device/evdevInputDevice.cxx b/panda/src/device/evdevInputDevice.cxx index 5e2be61a95..cf0cc18cc6 100644 --- a/panda/src/device/evdevInputDevice.cxx +++ b/panda/src/device/evdevInputDevice.cxx @@ -23,6 +23,14 @@ #include #include +#ifndef BTN_DPAD_UP +#define BTN_DPAD_UP 0x220 +#define BTN_DPAD_DOWN 0x221 +#define BTN_DPAD_LEFT 0x222 +#define BTN_DPAD_RIGHT 0x223 +#endif + + // Android introduces these in API level 21. #ifndef BTN_TRIGGER_HAPPY #define BTN_TRIGGER_HAPPY 0x2c0