From b77064441149413543f190ee5067760e6acc1358 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 17 Jun 2023 09:46:46 -0700 Subject: [PATCH] Fixed building on older kernel headers --- src/core/linux/SDL_evdev_capabilities.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/linux/SDL_evdev_capabilities.h b/src/core/linux/SDL_evdev_capabilities.h index df9537a57..94afee796 100644 --- a/src/core/linux/SDL_evdev_capabilities.h +++ b/src/core/linux/SDL_evdev_capabilities.h @@ -28,8 +28,14 @@ #include +#ifndef INPUT_PROP_TOPBUTTONPAD +#define INPUT_PROP_TOPBUTTONPAD 0x04 +#endif +#ifndef INPUT_PROP_POINTING_STICK +#define INPUT_PROP_POINTING_STICK 0x05 +#endif #ifndef INPUT_PROP_ACCELEROMETER -#define INPUT_PROP_ACCELEROMETER 0x06 +#define INPUT_PROP_ACCELEROMETER 0x06 #endif #ifndef INPUT_PROP_MAX #define INPUT_PROP_MAX 0x1f