mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 13:56:00 +00:00
Use a separate sensor watching function for gamepad events to avoid reliance on system sensor events and prevent a potential deadlock
This commit is contained in:
@@ -42,4 +42,7 @@ extern SDL_bool SDL_ShouldIgnoreGamepad(const char *name, SDL_JoystickGUID guid)
|
||||
/* Handle delayed guide button on a gamepad */
|
||||
extern void SDL_GamepadHandleDelayedGuideButton(SDL_Joystick *joystick);
|
||||
|
||||
/* Handle system sensor data */
|
||||
extern void SDL_GamepadSensorWatcher(Uint64 timestamp, SDL_SensorID sensor, Uint64 sensor_timestamp, float *data, int num_values);
|
||||
|
||||
#endif /* SDL_gamepad_c_h_ */
|
||||
|
Reference in New Issue
Block a user