usb gamepad


Closed Thread
Results 1 to 8 of 8

Thread: usb gamepad

  1. #1
    Join Date
    Sep 2009
    Posts
    737

    Default usb gamepad

    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.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Is that a RAR file or something.

    Winzip says it's not valid.

    DT

  3. #3
    Join Date
    Sep 2009
    Posts
    737

    Default

    it's rar file.

  4. #4
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    Can you upload your code, or put it up as zip file.

    Squib

  5. #5
    Join Date
    Sep 2009
    Posts
    737

    Default

    Here is complite project.
    Attached Files Attached Files

  6. #6
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    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

    Do you have copy of EasyHid?

    Squib

  7. #7
    Join Date
    Sep 2009
    Posts
    737

    Default

    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...

  8. #8
    Join Date
    Sep 2009
    Posts
    737

    Default

    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

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. USB Bootloader.
    By HenrikOlsson in forum USB
    Replies: 22
    Last Post: - 2nd May 2013, 02:46
  3. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  4. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts