MHeironimus / ArduinoJoystickLibrary

An Arduino library that adds one or more joysticks to the list of HID devices an Arduino Leonardo or Arduino Micro can support.
GNU Lesser General Public License v3.0
2.07k stars 403 forks source link

Rename Buttons #170

Closed ASionville closed 3 years ago

ASionville commented 3 years ago

Hi everyone !

Is there a way to rename the buttons ?

I mean that rather than having Button0, Button1 ... in game, would it be possible to give a display name for each button ? An example for this is the A, X, Y and B on Xbox Controllers

Thanks !

ASionville

markus-i commented 3 years ago

As far as I know (i.e., unless there's a way doing this using the HID descriptor), that would be an issue of your host system's USB driver and/or application. It works for the XBox controller with Windows because there are only a few buttons - and both are made by the same company ;-).

MHeironimus commented 3 years ago

I agree. My understanding this is a feature of the driver on the host computer, not the USB device.