Documentation Topics
Function

PRVirconJoyGetXValue()

Returns the x-value of the given joystick, which is a value between -1 and +1 and relates to how far from the center the joystick is positioned horizontally. Returns 0 if the joystick is centered horizontally or if the joystick is within the deadzone, if one is defined. If the joystick is pressed left, negative values are returned. If pressed right, positive values are returned.


Declaration

PRVirconJoyGetXValue(joyId)

Parameters

joyId

The joystick ID.

Return Value

A value between -1 and +1 indicating the joystick's position horizontally.