mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-21 12:51:07 +08:00
N3DS: Use SDL_Sensor instead of Joystick sensors.
This commit is contained in:
committed by
Sam Lantinga
parent
27557b62b6
commit
392f3882d0
@@ -2783,6 +2783,13 @@ elseif(N3DS)
|
||||
set(HAVE_SDL_TIMERS TRUE)
|
||||
endif()
|
||||
|
||||
if(SDL_SENSOR)
|
||||
set(SDL_SENSOR_N3DS 1)
|
||||
file(GLOB N3DS_SENSOR_SOURCES ${SDL2_SOURCE_DIR}/src/sensor/n3ds/*.c)
|
||||
list(APPEND SOURCE_FILES ${N3DS_SENSOR_SOURCES})
|
||||
set(HAVE_SDL_SENSORS TRUE)
|
||||
endif()
|
||||
|
||||
if(SDL_VIDEO)
|
||||
set(SDL_VIDEO_DRIVER_N3DS 1)
|
||||
file(GLOB N3DS_VIDEO_SOURCES ${SDL2_SOURCE_DIR}/src/video/n3ds/*.c)
|
||||
|
||||
Reference in New Issue
Block a user