AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

joyGetPos

The joyGetPos function queries a joystick for its position and button status.

VB4-32,5,6
Declare Function joyGetPos Lib "winmm.dll" Alias "joyGetPos" (ByVal uJoyID As Long, pji As JOYINFO) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Winmm

Parameter Information
· uJoyID
Identifier of the joystick (JOYSTICKID1 or JOYSTICKID2) to be queried.

· pji
Address of a JOYINFO structure that contains the position and button status of the joystick.

Return Values
Returns JOYERR_NOERROR if successful or one of the following error values:
MMSYSERR_NODRIVER
The joystick driver is not present.
MMSYSERR_INVALPARAM
An invalid parameter was passed.

JOYERR_UNPLUGGED
The specified joystick is not connected to the system.

Examples

Related Functions

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/