Messing with HID

LWStrike
Unregistered
 
Post: #1
I been messing with HID a lot (not that long actually) and i am begining to understand how to use it.
Before i go and write a ton of code i wanted to know if anyone else has code that detects and polls hardware directly (i hate to keep track via events).

I plan to write

Mouse
- Support for 3 buttons (left, right, middle/wheel).
- relative x, y movement
- Wheel movement.

Keyboard
- Detects each button and if it is pressed or not

Joypad
- Count and poll if each buttons is pressed
- Detects the axis/stick position
- Amount of and hat position

I am sure someone here has written HID code that does this. It be great if you can send me a link or directly email it to me (look at my profile for the email)

NOTE: I do not want to use SDL or other 3rd party libs. I only want to know if somone has done any of these.
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #2
You should Google for George Warner's HID utilities. In addition to that, I could send you the HID code for El Ballo - it does the gamepad/joystick stuff. I'll try to mail it to you tomorrow - I don't have internet at home at the moment.
Quote this message in a reply
LWStrike
Unregistered
 
Post: #3
i googled 'George Warner' and landed on this page http://mud.5341.com/msg/8455.html
It was really helpful thanks.

I will be writing my HID code sometime this week, if anyone would like to help drop me a line. If anyone wants the source let me know.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Frame buffer objects seem to be messing with my computer Jar445 2 3,469 Feb 24, 2009 08:59 AM
Last Post: Jar445
  glRotate and glTranslate are messing up my lighting?!? Jake 5 4,174 Oct 17, 2003 01:08 PM
Last Post: MacFiend