2022-08-22 22:21:23 +02:00
|
|
|
add_library(CemuInput
|
2022-09-01 14:46:56 +02:00
|
|
|
InputManager.cpp
|
|
|
|
InputManager.h
|
|
|
|
ControllerFactory.cpp
|
|
|
|
ControllerFactory.h
|
|
|
|
api/ControllerState.h
|
|
|
|
api/Controller.cpp
|
|
|
|
api/Controller.h
|
|
|
|
api/ControllerState.cpp
|
|
|
|
api/InputAPI.h
|
|
|
|
api/ControllerProvider.h
|
|
|
|
api/DSU/DSUController.h
|
|
|
|
api/DSU/DSUControllerProvider.cpp
|
|
|
|
api/DSU/DSUController.cpp
|
|
|
|
api/DSU/DSUControllerProvider.h
|
|
|
|
api/DSU/DSUMessages.h
|
|
|
|
api/DSU/DSUMessages.cpp
|
2022-09-17 03:24:57 +02:00
|
|
|
api/SDL/SDLController.cpp
|
|
|
|
api/SDL/SDLControllerProvider.cpp
|
|
|
|
api/SDL/SDLController.h
|
|
|
|
api/SDL/SDLControllerProvider.h
|
2022-09-01 14:46:56 +02:00
|
|
|
api/Keyboard/KeyboardControllerProvider.h
|
|
|
|
api/Keyboard/KeyboardControllerProvider.cpp
|
|
|
|
api/Keyboard/KeyboardController.cpp
|
|
|
|
api/Keyboard/KeyboardController.h
|
|
|
|
api/GameCube/GameCubeController.cpp
|
|
|
|
api/GameCube/GameCubeControllerProvider.h
|
|
|
|
api/GameCube/GameCubeControllerProvider.cpp
|
|
|
|
api/GameCube/GameCubeController.h
|
2022-09-17 03:24:57 +02:00
|
|
|
emulated/ProController.cpp
|
|
|
|
emulated/EmulatedController.h
|
|
|
|
emulated/EmulatedController.cpp
|
|
|
|
emulated/ProController.h
|
|
|
|
emulated/WPADController.cpp
|
|
|
|
emulated/WPADController.h
|
|
|
|
emulated/WiimoteController.h
|
|
|
|
emulated/VPADController.cpp
|
|
|
|
emulated/WiimoteController.cpp
|
|
|
|
emulated/VPADController.h
|
|
|
|
emulated/ClassicController.cpp
|
|
|
|
emulated/ClassicController.h
|
2022-08-22 22:21:23 +02:00
|
|
|
)
|
|
|
|
|
2022-09-17 03:24:57 +02:00
|
|
|
set_property(TARGET CemuInput PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
|
|
|
2022-08-22 22:21:23 +02:00
|
|
|
if(WIN32)
|
2022-09-01 14:46:56 +02:00
|
|
|
# XInput
|
|
|
|
target_sources(CemuInput PRIVATE
|
|
|
|
api/XInput/XInputControllerProvider.cpp
|
|
|
|
api/XInput/XInputControllerProvider.h
|
|
|
|
api/XInput/XInputController.cpp
|
|
|
|
api/XInput/XInputController.h
|
|
|
|
)
|
2022-08-22 22:21:23 +02:00
|
|
|
|
2022-09-01 14:46:56 +02:00
|
|
|
# DirectInput
|
|
|
|
target_sources(CemuInput PRIVATE
|
|
|
|
api/DirectInput/DirectInputControllerProvider.cpp
|
|
|
|
api/DirectInput/DirectInputController.h
|
|
|
|
api/DirectInput/DirectInputControllerProvider.h
|
|
|
|
api/DirectInput/DirectInputController.cpp
|
|
|
|
)
|
2022-08-22 22:21:23 +02:00
|
|
|
endif()
|
|
|
|
|
2023-08-15 09:37:37 +02:00
|
|
|
if (ENABLE_WIIMOTE)
|
2023-08-31 03:29:12 +02:00
|
|
|
target_compile_definitions(CemuInput PUBLIC SUPPORTS_WIIMOTE)
|
2023-08-15 09:37:37 +02:00
|
|
|
target_sources(CemuInput PRIVATE
|
|
|
|
api/Wiimote/WiimoteControllerProvider.h
|
|
|
|
api/Wiimote/WiimoteControllerProvider.cpp
|
|
|
|
api/Wiimote/WiimoteMessages.h
|
|
|
|
api/Wiimote/NativeWiimoteController.h
|
|
|
|
api/Wiimote/NativeWiimoteController.cpp
|
|
|
|
api/Wiimote/WiimoteDevice.h
|
|
|
|
api/Wiimote/hidapi/HidapiWiimote.cpp
|
|
|
|
api/Wiimote/hidapi/HidapiWiimote.h
|
2023-12-06 02:33:29 +01:00
|
|
|
)
|
2023-08-15 09:37:37 +02:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
2022-08-29 07:19:48 +02:00
|
|
|
target_include_directories(CemuInput PUBLIC "../")
|
|
|
|
|
|
|
|
target_link_libraries(CemuInput PRIVATE
|
|
|
|
CemuCafe
|
|
|
|
CemuCommon
|
|
|
|
CemuConfig
|
|
|
|
CemuGui
|
|
|
|
CemuUtil
|
|
|
|
Boost::headers
|
|
|
|
Boost::program_options
|
|
|
|
glm::glm
|
|
|
|
pugixml::pugixml
|
|
|
|
SDL2::SDL2
|
|
|
|
)
|
2023-08-15 09:37:37 +02:00
|
|
|
if (ENABLE_HIDAPI)
|
|
|
|
target_link_libraries(CemuInput PRIVATE hidapi::hidapi)
|
|
|
|
endif()
|
2022-08-29 07:19:48 +02:00
|
|
|
|
|
|
|
if (ENABLE_WXWIDGETS)
|
|
|
|
target_link_libraries(CemuInput PRIVATE wx::base wx::core)
|
|
|
|
endif()
|