PDA

View Full Version : usb gamepad



pedja089
- 27th September 2009, 19:37
Hello.
I am trying to make usb gamepad. I started with usb mouse example from microchip.
I menage some how to make recognised as 2 axis 2 button gamepad, but it won't work.
in attachment is my project.
I will be appreciative for help.

Darrel Taylor
- 27th September 2009, 22:13
Is that a RAR file or something.

Winzip says it's not valid.
<br>

pedja089
- 27th September 2009, 22:59
it's rar file.

Squibcakes
- 5th October 2009, 03:31
Can you upload your code, or put it up as zip file.

Squib

pedja089
- 6th October 2009, 10:32
Here is complite project.

Squibcakes
- 7th October 2009, 02:40
Hi Mate,

I can see you have what you been trying, but don't use the mouse demo for joystick - it's not the way.

In your main program, which ports have you assigned for the buttons and axis (analog inputs)??

I'll try and throw something together (good refresher) and maybe we can all learn something. Do you have a copy of DescriptorTool? http://www.usb.org/developers/hidpage/dt2_4.zip (http://www.usb.org/developers/hidpage/dt2_4.zip)

Do you have copy of EasyHid?

Squib

pedja089
- 8th October 2009, 19:23
I saw it here
http://www.starlino.com/usb_gamepad.html
hex from that site work. But I wont mu own!
I sent mail but he didn't want to help me.
I trying to make Gamepad with only buttons.
Descriptor is problem. As you can see in code I just sent value from PortB to all byte in array. I just wont to see that it move cursor on screen, controls is very easy to make.
I make mouse with only buttons.
I am thinking to make mouse with resistive touch screen. But first gamepad...

pedja089
- 8th October 2009, 19:45
And I forgot to say, I have copy of EasyHid and DescriptorTool. But no succes with DescriptorTool. I try allso with microchip TB054.pdf microchip TB054.pdf (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en011980)