Added Emscripten support for Sensor API

This commit is contained in:
antonegas
2025-10-26 01:52:55 +02:00
committed by Sam Lantinga
parent 7381a2b072
commit 33f1008d01
6 changed files with 230 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ static SDL_SensorDriver *SDL_sensor_drivers[] = {
#ifdef SDL_SENSOR_N3DS
&SDL_N3DS_SensorDriver,
#endif
#ifdef SDL_SENSOR_EMSCRIPTEN
&SDL_EMSCRIPTEN_SensorDriver,
#endif
#if defined(SDL_SENSOR_DUMMY) || defined(SDL_SENSOR_DISABLED)
&SDL_DUMMY_SensorDriver
#endif