how to write a program that can detect the joystick and show the movements?!!!!!
plis help!!!! lots of thanx!!!!!!!!!!!!
Printable View
how to write a program that can detect the joystick and show the movements?!!!!!
plis help!!!! lots of thanx!!!!!!!!!!!!
Look at the joyGetDevCaps call first, then the joyGetPos call - both are windows API's (www.vbapi.com or www.allapi.net will help you)
Further to the PM e-mail that I can't reply to :confused: , here ya go...
I've not personally used this before - and just looked it up for you. If you goto this page though and download the API guide, this
little program is like a bible for working with the API and has a couple of samples in - I can't run these as I haven't got a joystick, on this pc (it'd be nice at work, hey, so would Drew Barrymore & it ain't gonna happen ;) )but this'll help you.
Here's what the program looks like, just type those calls I gave you into
the left & select the example tab.
well, i'm new with VB n i not sure that i can understand about that API funct or struct. where can i find a very simple n direct program as reference. i just need to detect my joystick( using gameport ) n left, right, up n down movement. that's o. no need the buttons or others.
thanx.