Skip to content

Question concerning the Joystick HID descriptor report #2

@TCIII

Description

@TCIII

@kkbin505,

I want to congratulate you for developing this excellent piece of software as it has greatly simplified using a RC gamepad (BetaFPV ELRS LiteRadio 3) in place of a BT gamepad (PS4/XBox) for remote control of my Donkey Car test vehicle.
I am presently using the default frame rate of 150 frames/sec on my BetaFPV LiteRadio 3 and testing has shown the joystick axes/switches responses to be virtually instantaneous.

I believe that the Joystick HID descriptor report, shown below, controls the definition of the joystick axes and switches:

Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,JOYSTICK_TYPE_GAMEPAD,
  0, 0,                 // Button Count, Hat Switch Count
  true, true, true,  // X, Y, Z
  true, true, true,  // Rx, Ry, Rz
  false, false,          // Rudder, Throttle
  false, false, false);    // Accelerator, Brake, Steering

Based on a search of the IoT for information concerning the HID descriptor report, the HID descriptor shown above does not match any of the HID descriptor report documentation I could find.
I suspect that the HID descriptor report shown above is unique to the Arduino Joystick Library requirements?

Could you please explain, or point me to a tutorial, how you constructed the HID descriptor report so that it can be easily modified for a user's unique joystick requirement.

Regards,
TCIII

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions