When i try to comply the code i found after downloading the libraries is getting this error: Arduino: 1.8.15 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
In file included from D:\Arduino\libraries\ArduinoJoystickLibrary-master\src/Joystick.h:24:0,
from C:\Users\assas\Desktop\wim_s_button_box_code\wim_s_button_box_code.ino:2:
D:\Arduino\libraries\ArduinoJoystickLibrary-master\src/DynamicHID/DynamicHID.h:37:28: fatal error: PluggableUSB.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I don't know that this is a library you can install. This is an architecture-specific library that is supposed to be bundled with the core library of the Arduino boards platform of the board you are compiling for. ESP32 does not have native USB capabilities, so there is no reason or possibility for the developers to create such a file.
@admiral_bob you simply can't use this joystick library with an ESP32. Please check the library's documentation to learn which boards it is compatible with.
I believe there is some capability for emulating HID devices via BLE on the ESP32, so you might check to see whether that is possible. Probably you'll have the easiest time by simply buying a suitable board. Some good ones for USB: