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

Type set to JOYSTICK_TYPE_GAMEPAD, yet Win10 detects Arduino Micro as joystick #143

Closed ftsdesign closed 4 years ago

ftsdesign commented 4 years ago

Description of Issue

No application on Win10 detects Arduino Micro as a gamepad (tried Game Controller Tester, as well as multiple games). In Game Controllers control panel it is also shown as joystick.

Technical Details

Sketch File that Reproduces Issue

Joystick_ Joystick = Joystick_(
    JOYSTICK_DEFAULT_REPORT_ID, 
    JOYSTICK_TYPE_GAMEPAD,
    6, //buttonCount
    0, //hatSwitchCount
    true, //includeXAxis
    true, //includeYAxis
    false, //includeZAxis
    false, //includeRxAxis
    false, //includeRyAxis
    false, //includeRzAxis
    false, //includeRudder
    true, //includeThrottle
    false, //includeAccelerator
    false, //includeBrake
    false //includeSteering
    );

Wiring Details

Any pin wiring details that may be relevant.

Additional context

Add any other context about the problem here.

MHeironimus commented 4 years ago

This is expected. The joystickType is a pretty low-level setting. See the Universal Serial Bus (USB) HID Usage Tables documentation for more details (https://usb.org/sites/default/files/documents/hut1_12v2.pdf). Look for section 4.1 (Application Usages).