PDA

View Full Version : Global Joystick Hook? (Can it be done)



Xorcist
17-01-2004, 12:45 AM
I want to write a program to globally catch various activities from an attached Joystick, so I can then bind keyboard keys to each button, and emulate the keypresses through the Joystick. Programs like RB-Joy and JoyToKey are examples, but their source is not available.

I assume I could use SDL or DirectX to capture these actions, however each has it's own quirks, and require alot of setup for each individual device attached (SDL can't handle more that two under Windows). Not to mention how I would go about creating the global Joystick hook after the fact.

So does anyone have any ideas? or better yet any links to tutorials or examples...