diff --git a/app/streaming/input/input.h b/app/streaming/input/input.h index 7799071c..65bd4f9a 100644 --- a/app/streaming/input/input.h +++ b/app/streaming/input/input.h @@ -19,6 +19,7 @@ struct GamepadState { SDL_TimerID mouseEmulationTimer; uint32_t lastStartDownTime; +#if SDL_VERSION_ATLEAST(2, 0, 14) uint8_t gyroReportPeriodMs; float lastGyroEventData[SDL_arraysize(SDL_ControllerSensorEvent::data)]; uint32_t lastGyroEventTime; @@ -26,6 +27,7 @@ struct GamepadState { uint8_t accelReportPeriodMs; float lastAccelEventData[SDL_arraysize(SDL_ControllerSensorEvent::data)]; uint32_t lastAccelEventTime; +#endif int buttons; short lsX, lsY;