Added Emscripten support for Sensor API
This commit is contained in:
@@ -1715,6 +1715,15 @@ elseif(EMSCRIPTEN)
|
||||
set(HAVE_CLOCK_GETTIME 1)
|
||||
endif()
|
||||
|
||||
if(SDL_SENSOR)
|
||||
set(SDL_SENSOR_EMSCRIPTEN 1)
|
||||
set(HAVE_SDL_SENSORS TRUE)
|
||||
sdl_glob_sources(
|
||||
"${SDL3_SOURCE_DIR}/src/sensor/emscripten/*.c"
|
||||
"${SDL3_SOURCE_DIR}/src/sensor/emscripten/*.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(SDL_VIDEO)
|
||||
set(SDL_VIDEO_DRIVER_EMSCRIPTEN 1)
|
||||
sdl_glob_sources(
|
||||
|
||||
Reference in New Issue
Block a user