Documentation Topics
Function

PRVirconJoySetSnapsToCenter()

Sets the given joystick's snap-to-center behaviour. When set to true, the joystick will automatically jump back to its centre when the player lets go of it. If false, the joystick stays in place when it's let go of.


Declaration

PRVirconJoySetSnapsToCenter(joyId, snapsToCenter)

Parameters

joyId

The joystick ID.

snapsToCenter

true or false, indicating if the joystick should snap to center or not.

Return Value

n/a