Ktpgetjoystickcalibdata ktpgetoverridepoti – Rockwell Automation 2727-MRSDK MobileView Terminals Software Development Kit User Manual User Manual

Page 35

Advertising
background image

Publication 2727-UM004B-EN-P - February 2004

SDK (Software Development Kit) for MobileView Terminals 4-11

KtpGetJoystickCalibData

KtpGetOverridePoti

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.24

Declaration:

Visual C:

UINT8 KtpSetJoystickCalibData(/*in*/TKtpJoystickChannel ch
UINT16 rawMin, UINT16 rawCenter, UINT16 rawMax, UINT16
calibRange);

Visual Basic:

KtpSetJoystickCalibData(ByVal joystickChannel As Integer,
ByVal rawMin As Integer, ByVal rawCenter As Integer,
ByVal rawMax As Integer, ByVal calibRange As Integer);

Description:

Calibrates the axis of the joystick.

Arguments:

TktpJoystickChannel ch: channel to be calibrated.
UINT16 rawMin: value for smallest raw value
UINT16 ramCenter: average value for raw data
UINT16 rawMax: maximum value of raw data
UINT16 calibRange: maximum range of joystick

Remarks

This function may only be called if a joystick is installed on the device. If
no joystick is installed, the value of the components are undefined.

Table 4.25

Declaration:

Visual C:

UINT8 KtpGetOverridePoti(/*out*/UINT8 *p_pos);

Visual Basic:

KtpGetOverridePoti(ByRef pos As Byte)

Table 4.23

Advertising