Results 1 to 8 of 8

Thread: Usb gamepad as a mouse

  1. #1
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334

    Usb gamepad as a mouse

    Just bought a usb gamepad, looks like an xbox pad.

    Can one of the analog thumb sticks be used as a mouse?

    Now a piece of software to do that would be so damn usefull!

    Rip it apart and move the analog thumb bit to my steering wheel etc or build in onto the end of a mini keyboard.....

    <edit>

    Just like Pinnacle Game Profiler 2.0 but without the cost..........

  2. #2
    Maximum Bitrate MoFo's Avatar
    Join Date
    May 2004
    Location
    TX
    Posts
    481
    yeah, i've done this before. I made the the analog a mouse and the buttons control media, or load programs..let me see if i still have that code

  3. #3
    Variable Bitrate Superduck's Avatar
    Join Date
    Oct 2003
    Location
    Vancouver BC
    Posts
    296
    Joy2Mouse

    Or just google 'joy2mouse'. There's several programs out there that will do this.
    I think there's a lot of this tpe of program used with the MAME cabinets and other arcade emulators.

    Good luck,

    Kris
    How Much Horsepower Can I have And Still Go To Heaven?

  4. #4
    Maximum Bitrate MoFo's Avatar
    Join Date
    May 2004
    Location
    TX
    Posts
    481
    Hey Lez, i found the code. I havent used it in a while and its pretty messy but it works great. If you use Visual Basic let me know and I'll send it to you.

  5. #5
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    Yup I do, wrote a sms decoder / tx thing in VB, took about 2 weeks! was going to build a whole car sms control system, ie sms 'CAR LOCK DOORS' etc but its on hold as busy with rest of install.

    So I would like to look at other VB code, may show me things etc.

  6. #6
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    Anothr thought just occured..........

    Howz about using one of the analog sticks to selct a-z etc like mousewheel bit like entering you name on a highscore in a console game.

    Current pads have about 10 buttons and 2 analog sticks and cost next to Fall....

  7. #7
    Newbie
    Join Date
    Jan 2006
    Location
    Houston, Tx
    Posts
    1

    SMS Decoder?

    Hey Lez,
    how would you approach this sms decoder thing? I'm really interested in trying to develop something like this,

    I hadn't thought about SMS, but was thinking of maybe just having like a cell phone inside a car and with the touch tone phone input codes to lock/unlock the doors, etc.... Some dude at my school did something like this for his senior design project and thought was pretty cool.

  8. #8
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    Ah how funny you should mention this when I was looking back into it last night.........

    I'm guessing he called the phone, and had the sound from the speaker wired to a dtmf decoder board (cheap to buy) and wired that to relays to the doors etc. cheat.




    Do you know what pdu mode is? it seems early phones accepted sms up the connector in plaintext, and then did the conversion, after all they do the conversion for what you typed....

    The 'pdu' string is whats sent to the network, and then to the other phone, which decodes it for display.

    If you read it by cable you get pdu text again.

    I wanted to build an sms car alarm ( I have free sms)
    Now here is the issue............

    Power, keeping the pc running is a big problem as its not an efficient machine.

    Windows crashes.

    Solution.........

    Pic chip.

    Now other problem is I cant write a pdu decoder in PIC basic, the chip does not have enough storage.

    So my current thinking is to write a simplified routine in the pic that just locks/unlocks doors and turns on the PC if I sent a 'PC.START' message

    The pic read the phones messages every 2 seconds, and sees if it has to do one of these commands...

    DOOR.LOCK
    DOOR.UNLOCK
    PC.ON
    PC.OFF

    etc,

    the only response needs to be 'ok' or 'error'

    By only having set commands and a set response, the msg can be stored in the pics eeprom already in pdu coded form

    Anyhow I started PIC things before and then they stalled, IE serial controlled pic relay project, everybody wanted something different, everybody wanted a compleat ready to buy package, I finished the code for a simple version (the other versions stalled) but never had time to do the PCB, not that it /needed/ a pcb, but its ready for resurection when I need it in the car.

    I think this is due for resurection also.

    If you can do picbasic, or pic asm etc, join the new revamped pic alarm at

    http://www.digital-car.co.uk/forum/f...asc&sort=title
    Lez, more widely known as flez1966

Similar Threads

  1. Installing a USB Hub up-front? Read this...
    By hd54321 in forum General Hardware Discussion
    Replies: 13
    Last Post: 02-09-2007, 11:49 AM
  2. WTB: USB FM Mouse or D-Link DRU-R100
    By tarpitblue in forum Classified Archive
    Replies: 0
    Last Post: 07-15-2005, 02:22 PM
  3. FS: Infared Keyboard, PS2 touchpad mouse, USB FM transmitter
    By bondbond55 in forum Classified Archive
    Replies: 8
    Last Post: 09-02-2004, 12:05 AM
  4. USB FM Mouse
    By aholey318 in forum General Hardware Discussion
    Replies: 5
    Last Post: 08-27-2004, 12:17 PM
  5. garmin mapsource vs road star usb mouse
    By kistian in forum GPS
    Replies: 3
    Last Post: 08-04-2004, 08:13 AM

Bookmarks

Posting Permissions

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