N3DS: Use SDL_Sensor instead of Joystick sensors.

This commit is contained in:
Pierre Wendling 2022-09-20 22:45:24 -04:00 committed by Sam Lantinga
parent 27557b62b6
commit 392f3882d0
6 changed files with 234 additions and 44 deletions

View file

@ -41,12 +41,15 @@ static SDL_SensorDriver *SDL_sensor_drivers[] = {
#ifdef SDL_SENSOR_WINDOWS
&SDL_WINDOWS_SensorDriver,
#endif
#ifdef SDL_SENSOR_VITA
&SDL_VITA_SensorDriver,
#endif
#ifdef SDL_SENSOR_N3DS
&SDL_N3DS_SensorDriver,
#endif
#if defined(SDL_SENSOR_DUMMY) || defined(SDL_SENSOR_DISABLED)
&SDL_DUMMY_SensorDriver
#endif
#if defined(SDL_SENSOR_VITA)
&SDL_VITA_SensorDriver
#endif
};
static SDL_Sensor *SDL_sensors = NULL;
static SDL_bool SDL_updating_sensor = SDL_FALSE;