AnsweredAssumed Answered

converting STM32F4 discovery USB mouse example to gamepad

Question asked by smeitink.huub on Aug 28, 2013
Latest reply on May 5, 2014 by lissarre.sebastien

I own a stm32f4 discovery board, for which a demonstration project can be downloaded here:

This demo consists of software to use the board as a usb hid mouse, using the accelerometer to control the mouse movement. I now want to change this into a gamepad, for now I'm leaving the other parts of the descriptor the same, so I only changed the usage from 0x09,0x02 (usage: mouse) to 0x09 , 0x09 (usage: gamepad). (these values can be found in the usb_hid_core file)

But after this change the computer still sees it as a mouse, but one that is not functioning correctly. What else should I change?

Any help would be greatly appreciated, I have been trying all kinds of things, but nothing seems to work.

I have included the file that I linked to, the usb_hid_core file can be found in this file at this location: