Index   Commented   Search   About

joyGetPos

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

MMRESULT joyGetPos(

UINT uJoyID,

LPJOYINFO pji

);

Parameters

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.

Remarks

For devices that have four to six axes of movement, a point-of-view control, or more than four buttons, use the joyGetPosEx function.

See Also

JOYINFO
, joyGetPosEx

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun