From 8142563d9f424c98dea3d309b59f31a47fc6f8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gallet?= Date: Tue, 25 Oct 2022 13:03:17 +0200 Subject: [PATCH] Add SDL_SensorType definition --- src/library/inputs/sdlgamecontroller.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/library/inputs/sdlgamecontroller.h b/src/library/inputs/sdlgamecontroller.h index a2d0a30e..02261f86 100644 --- a/src/library/inputs/sdlgamecontroller.h +++ b/src/library/inputs/sdlgamecontroller.h @@ -160,6 +160,14 @@ OVERRIDE Sint16 SDL_GameControllerGetAxis(SDL_GameController *gamecontroller, OVERRIDE Uint8 SDL_GameControllerGetButton(SDL_GameController *gamecontroller, SDL_GameControllerButton button); +typedef enum +{ + SDL_SENSOR_INVALID = -1, /**< Returned for an invalid sensor */ + SDL_SENSOR_UNKNOWN, /**< Unknown sensor type */ + SDL_SENSOR_ACCEL, /**< Accelerometer */ + SDL_SENSOR_GYRO /**< Gyroscope */ +} SDL_SensorType; + /** * Return whether a game controller has a particular sensor. *