Better HID communication
isXander opened this issue ยท 1 comments
Currently, Controlify uses hid4java
to detect the vendor and product ID of controllers, as well as communicate with them with HID protocol in some cases. This works, however because it is completely not correlated with the actual connected controllers, connection order must match. In some cases, Bluetooth controllers are also not detected through this library. Another issue: this library does not seem to include natives for macOS ARM, which severely degrades controller detection on M1 & M2 machines.
SDL, a library that is already in use by Controlify, offers built-in HID communication, which is already correlated to controllers. However, this means I will need to update my sdl2-jni
library, which is very error-prone.
Partially implemented in 45e859b