Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

changing a usb hid mouse into gamepad (stm32F4)

Status
Not open for further replies.

huub8

Junior Member level 3
Joined
Jul 9, 2012
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,489
Hello All,

I'm trying to change the stm32f4 discovery demonstration project (a usb mouse) into a usb gamepad. But as soon as I change 09 02 (usage: mouse) into 09 05 (usage: gamepad) in the usb descriptor it stops working.
Right now the code makes it act as a usb mouse that always sends x = 1, y= 1 and the other values are 0. I have been trying to get this to work for weeks now, but without succes.

The project can be downloaded here:
**broken link removed**

The actual workspace (using IAR embedded workbench) can be found in there here:
stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Demonstration\EWARM


I would be very grateful if anyone could have a look at it (since I already tried changing any of the descriptors values that I could think of).
 

Some idea: avr usb gamepad is open source. I think this files contains what you need.
 

Thank you but i need to use the library provided in the example to be able to also use the usb host function later on
 

I'm still stuck, help would be very much apreciated
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top