I want to write a program that will send a keyboard strokes to another program whenever i press a button on my sidewinder joystick. i'm not sure where to start. i need some help here. thx.
Posted on 2001-05-12 10:34:00 by lsx
If 'another' program has a window use FindWindow to get handle of that window then use SendMessage WM_CHAR (or whatever) with that handle.
Posted on 2001-05-12 11:17:00 by The Svin
ok, let me make the problems clearer : how do i catch the joystick's events ? how do i do that while the focus is on another window ? thx.
Posted on 2001-05-12 14:15:00 by lsx
there are a few functions in mmsystem for joysticks. look up the joySetCapture and joyGetPosEx functions in MSDN.
Posted on 2001-05-12 14:44:00 by Sloat
Ok man. i checked it. i think the problem is solved. thx.
Posted on 2001-05-12 15:38:00 by lsx