Go Down

Topic: Arduino DUE, wrong device (Read 633 times) previous topic - next topic


Nov 23, 2017, 04:54 pm Last Edit: Nov 23, 2017, 05:05 pm by Garriden
Hi, I have a problem with my arduino DUE, I hope someone could help me.

I want my arduino DUE to act as a gamepad, I downloaded a joystick library and uploaded a joystick test to my DUE.
When I connect my DUE with native port, (using windows 10) in device manager, I see "Arduino Due" in PORT COM4.

But when I open the Control Panel, I used to saw my DUE as a gamepad, but now I see it as a keyboard.

How can I "convert" my DUE to a gamepad? Thanks.

Second problem:

I have a code in Visual Studio, and I need to find my DUE. I search all devices of a specific deviceType:

But it detect my DUE as a firstperson, not as a gamepad:

I don't think that would be a problem, because I can send and recieve data from my DUE without problems. But, what can I change so windows10 could detect my DUE as a gamepad? not a firstperson. Thanks.

This is a part of the code located at library: joystick.cpp, in USAGE(Game Pad) 0x05 would be me saying: "This is a gamepad", windows understand: "This is a keyboard or a fristPerson".
Is this part, where I declare my DUE as a Game Pad, isn't it?
Code: [Select]

static const uint8_t _hidReportDescriptorJoystick[] PROGMEM = {
//32 buttons, 2 8-way hats, and 8 axes.
    0x05, 0x01, //USAGE_PAGE (Generic Desktop)
    0x09, 0x05, //USAGE (Game Pad)
    0xa1, 0x01, //COLLECTION (Application)
    0x85, 0x03, // REPORT_ID (3)
    0xa1, 0x00, // COLLECTION (Physical)
//32 buttons

Go Up