Rockwell Automation 2727-MRSDK MobileView Terminals Software Development Kit User Manual User Manual
Page 34

Publication 2727-UM004B-EN-P - February 2004
4-10 SDK (Software Development Kit) for MobileView Terminals
KtpGetJoystickPosEx
KtpGetJoystickPosRaw
KtpGetJoystickPosRawEx
Table 4.21
Declaration:
Visual C
UINT8 KtpGetJoystickPosEx(/*[out]*/int *posX, int *posY, int *posZ);
Visual Basic:
KtpGetJoystickPosEx(ByRef posX As Integer, ByRef
posY As Integer, ByRef posZ As Integer) As Byte
Description:
Gets the current joystick position.
Arguments
Each component in the structure may only range between -15 and 15.
Remarks
Calling this function is only allowed if a joystick is installed on the
device. If no joystick is installed the values of the components are
undefined.
Table 4.22
Declaration:
Visual C:
UINT8 KtpGetJoystickPosRaw (/*[out]*/TktpJoystickPosRaw*p_jPos);
Visual Basic:
KtpGetJoystickPosEx(ByRef posX As Integer, ByRef
posY As Integer, ByRef posZ As Integer) As Byte
Description:
Gets the actual raw data of the joystick.
Remarks
Calling this function is only allowed if a joystick is installed on the
device. If no joystick is installed the values of the components are
undefined.
Table 4.23
Declaration:
Visual C:
UINT8 KtpGetJoystickPosEx(/*[out]*/UINT16 *posX,
UINT16 *posY, UINT16 *posZ);