mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-02 13:01:18 +12:00
Linux/MacOS: Add wiimote support via HIDAPI (#934)
This commit is contained in:
parent
892ae13680
commit
85aa4f095b
8 changed files with 173 additions and 89 deletions
|
@ -89,6 +89,9 @@ if (WIN32)
|
|||
option(ENABLE_XINPUT "Enables the usage of XInput" ON)
|
||||
option(ENABLE_DIRECTINPUT "Enables the usage of DirectInput" ON)
|
||||
add_compile_definitions(HAS_DIRECTINPUT)
|
||||
set(ENABLE_WIIMOTE ON)
|
||||
elseif (UNIX)
|
||||
option(ENABLE_HIDAPI "Build with HIDAPI" ON)
|
||||
endif()
|
||||
option(ENABLE_SDL "Enables the SDLController backend" ON)
|
||||
|
||||
|
@ -155,6 +158,12 @@ if (ENABLE_DISCORD_RPC)
|
|||
target_include_directories(discord-rpc INTERFACE ./dependencies/discord-rpc/include)
|
||||
endif()
|
||||
|
||||
if (ENABLE_HIDAPI)
|
||||
find_package(hidapi REQUIRED)
|
||||
set(ENABLE_WIIMOTE ON)
|
||||
add_compile_definitions(HAS_HIDAPI)
|
||||
endif ()
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
if(ENABLE_FERAL_GAMEMODE)
|
||||
add_compile_definitions(ENABLE_FERAL_GAMEMODE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue