Documentation Topics
Function

PRVirconJoyPressed()

Returns true if the joystick is being pressed in the given direction and outside of the deadzone, if one is defined. false, otherwise.


Declaration

PRVirconJoyPressed(joyId, joyDir)

Parameters

joyId

The joystick ID.

joyDir

The direction requested. Can be one of the following constant values: PRVirconDirRight, PRVirconDirUpRight, PRVirconDirUp, PRVirconDirUpLeft, PRVirconDirLeft, PRVirconDirDownLeft, PRVirconDirDown, PRVirconDirDownRight.

Return Value

true or false