You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm pretty new to switch development and tried to compile sys-hidplus (and maybe make an improvement or two).
Upon compiling (make) I get the following error:
MINIPC@DESKTOP-JOSDEFJ MSYS ~/Downloads/sys-hidplus-master
$ make
con_manager.cpp
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp: In member function 'int FakeController::initialize(u16)':
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:41:42: error: 'NpadInterfaceType_Bluetooth' was not declared in this scope; did you mean 'XcdInterfaceType_Bluetooth'?
41 | controllerDevice.npadInterfaceType = NpadInterfaceType_Bluetooth;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| XcdInterfaceType_Bluetooth
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:44:21: error: 'struct HiddbgHdlsState' has no member named 'batteryCharge'
44 | controllerState.batteryCharge = 4; // Set battery charge to full.
| ^~~~~~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:48:25: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
48 | controllerState.joysticks[JOYSTICK_LEFT].dx = 0x0;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:49:25: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
49 | controllerState.joysticks[JOYSTICK_LEFT].dy = -0x0;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:54:25: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
54 | controllerState.joysticks[JOYSTICK_RIGHT].dx = 0x0;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:55:25: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
55 | controllerState.joysticks[JOYSTICK_RIGHT].dy = -0x0;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:58:46: error: cannot convert 'u64*' {aka 'long unsigned int*'} to 'HiddbgHdlsHandle*'
58 | myResult = hiddbgAttachHdlsVirtualDevice(&controllerHandle, &controllerDevice);
| ^~~~~~~~~~~~~~~~~
| |
| u64* {aka long unsigned int*}
In file included from C:/devkitPro/libnx/include/switch.h:81,
from C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.hpp:8,
from C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:1:
C:/devkitPro/libnx/include/switch/services/hiddbg.h:402:56: note: initializing argument 1 of 'Result hiddbgAttachHdlsVirtualDevice(HiddbgHdlsHandle*, const HiddbgHdlsDeviceInfo*)'
402 | Result hiddbgAttachHdlsVirtualDevice(HiddbgHdlsHandle *handle, const HiddbgHdlsDeviceInfo *info);
| ~~~~~~~~~~~~~~~~~~^~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp: In member function 'int FakeController::deInitialize()':
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:75:24: error: could not convert '((FakeController*)this)->FakeController::controllerHandle' from 'u64' {aka 'long unsigned int'} to 'HiddbgHdlsHandle'
75 | hiddbgSetHdlsState(controllerHandle, &controllerState);
| ^~~~~~~~~~~~~~~~
| |
| u64 {aka long unsigned int}
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:77:46: error: could not convert '((FakeController*)this)->FakeController::controllerHandle' from 'u64' {aka 'long unsigned int'} to 'HiddbgHdlsHandle'
77 | myResult = hiddbgDetachHdlsVirtualDevice(controllerHandle);
| ^~~~~~~~~~~~~~~~
| |
| u64 {aka long unsigned int}
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp: In function 'void apply_fake_con_state(input_message)':
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:159:51: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
159 | fakeControllerList[i].controllerState.joysticks[0].dx = joylx;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:160:51: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
160 | fakeControllerList[i].controllerState.joysticks[0].dy = joyly;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:161:51: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
161 | fakeControllerList[i].controllerState.joysticks[1].dx = joyrx;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:162:51: error: 'struct HiddbgHdlsState' has no member named 'joysticks'
162 | fakeControllerList[i].controllerState.joysticks[1].dy = joyry;
| ^~~~~~~~~
C:/Users/MINIPC/Downloads/sys-hidplus-master/source/con_manager.cpp:163:54: error: could not convert 'fakeControllerList[i].FakeController::controllerHandle' from 'u64' {aka 'long unsigned int'} to 'HiddbgHdlsHandle'
163 | hiddbgSetHdlsState(fakeControllerList[i].controllerHandle, &fakeControllerList[i].controllerState);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
| |
| u64 {aka long unsigned int}
make[1]: *** [/opt/devkitpro/devkitA64/base_rules:14: con_manager.o] Error 1
make: *** [Makefile:166: build] Error 2
I'm lost here, maybe it is because of newer devkitpro/libnx (though 3 months are not that long of a time)
Hello, I'm pretty new to switch development and tried to compile sys-hidplus (and maybe make an improvement or two).
Upon compiling (make) I get the following error:
I'm lost here, maybe it is because of newer devkitpro/libnx (though 3 months are not that long of a time)
EDIT: From the abstract-pad libnx example at https://github.com/switchbrew/switch-examples/blob/master/hid/abstracted-pad/source/main.c
This is deprecated, use Hdls instead when running on compatible system-versions.
The text was updated successfully, but these errors were encountered: