Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gameports
Message
De
13/12/1999 16:51:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00301600
Message ID:
00302991
Vues:
21
>>I am looking to build a Pinewood Derby Race database for our Cub Scout Pack. I have plans for a finish gate that involves use of the gameport/joystick (start = fire button, lane 1 = up, lane 2 = left, lane 3 = down, lane 4 = right). Has anyone found the calls to query the joystick port and find which direction/button is being pressed?
>
>Here are some possible lead:
>http://www.cybertrails.com/~fys/index.htm
>
>In particular:
>http://www.cybertrails.com/~fys/gameport.htm
>http://www.cybertrails.com/~fys/joystick.htm


These are the Win32 API calls I use...

Declare INTEGER joyGetDevCaps IN winmm long,string @,long
Declare INTEGER joyGetNumDevs IN winmm
Declare INTEGER joyGetPos IN winmm long, String @
Declare INTEGER joyGetPosEx in winmm Long, string @
Declare INTEGER joyGetThreshold IN winmm long, long
Declare INTEGER joyReleaseCapture IN winmm long
Declare INTEGER joySetThreshold IN winmm long, long
Declare INTEGER joySetCapture IN winmm long, long, long, long


I've got source you can have if you can read it (it's a mess!) It works for my Microsoft Sidewinder Pro joystick at least.

- A Hilton
A Hilton
Software & Technology Development,
Programming & Business Process Consulting
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform