input_common: Rewrite SDL

This commit is contained in:
german77 2021-09-20 17:36:23 -05:00 committed by Narr the Reg
parent 10241886dd
commit 59b995a9e5
6 changed files with 950 additions and 1757 deletions

View file

@ -5,6 +5,8 @@ add_library(input_common STATIC
drivers/keyboard.h
drivers/mouse.cpp
drivers/mouse.h
drivers/sdl_driver.cpp
drivers/sdl_driver.h
drivers/tas_input.cpp
drivers/tas_input.h
drivers/touch_screen.cpp
@ -29,8 +31,6 @@ add_library(input_common STATIC
motion_from_button.h
motion_input.cpp
motion_input.h
sdl/sdl.cpp
sdl/sdl.h
)
if (MSVC)
@ -57,8 +57,8 @@ endif()
if (ENABLE_SDL2)
target_sources(input_common PRIVATE
sdl/sdl_impl.cpp
sdl/sdl_impl.h
drivers/sdl_driver.cpp
drivers/sdl_driver.h
)
target_link_libraries(input_common PRIVATE SDL2)
target_compile_definitions(input_common PRIVATE HAVE_SDL2)