File tree Expand file tree Collapse file tree 6 files changed +4
-175
lines changed Expand file tree Collapse file tree 6 files changed +4
-175
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,9 @@ if (WIN32)
89
89
option (ENABLE_XINPUT "Enables the usage of XInput" ON )
90
90
option (ENABLE_DIRECTINPUT "Enables the usage of DirectInput" ON )
91
91
add_compile_definitions (HAS_DIRECTINPUT )
92
- set (ENABLE_WIIMOTE ON )
93
- elseif (UNIX )
94
- option (ENABLE_HIDAPI "Build with HIDAPI" ON )
95
92
endif ()
93
+
94
+ option (ENABLE_HIDAPI "Build with HIDAPI" ON )
96
95
option (ENABLE_SDL "Enables the SDLController backend" ON )
97
96
98
97
# audio backends
Original file line number Diff line number Diff line change @@ -70,18 +70,9 @@ if (ENABLE_WIIMOTE)
70
70
api/Wiimote/NativeWiimoteController.h
71
71
api/Wiimote/NativeWiimoteController.cpp
72
72
api/Wiimote/WiimoteDevice.h
73
- )
74
- if (ENABLE_HIDAPI )
75
- target_sources (CemuInput PRIVATE
76
73
api/Wiimote/hidapi/HidapiWiimote.cpp
77
74
api/Wiimote/hidapi/HidapiWiimote.h
78
- )
79
- elseif (WIN32 )
80
- target_sources (CemuInput PRIVATE
81
- api/Wiimote/windows/WinWiimoteDevice.cpp
82
- api/Wiimote/windows/WinWiimoteDevice.h
83
- )
84
- endif ()
75
+ )
85
76
endif ()
86
77
87
78
Original file line number Diff line number Diff line change 2
2
#include " input/api/Wiimote/NativeWiimoteController.h"
3
3
#include " input/api/Wiimote/WiimoteMessages.h"
4
4
5
- #ifdef HAS_HIDAPI
6
5
#include " input/api/Wiimote/hidapi/HidapiWiimote.h"
7
- #elif BOOST_OS_WINDOWS
8
- #include " input/api/Wiimote/windows/WinWiimoteDevice.h"
9
- #endif
10
6
11
7
#include < numbers>
12
8
#include < queue>
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 26
26
" boost-static-string" ,
27
27
" boost-random" ,
28
28
" fmt" ,
29
- {
30
- "name" : " hidapi" ,
31
- "platform" : " !windows"
32
- },
29
+ " hidapi" ,
33
30
" libpng" ,
34
31
" glm" ,
35
32
{
You can’t perform that action at this time.
0 commit comments