Joy getaxis

From Bennu Wiki
Jump to: navigation, search


Syntax

INT joy_getaxis ( [ <INT joy>], <INT axis> )

Description

Returns the selected joystick state for the given axis.

The JoyID is optional, if it is not present, the function uses the selected joystick. You can change the selected joystick with joy_select().

Also called joy_getposition(). The previous name get_joy_position() is deprecated.

Parameters

[INT JoyID] - The JoyID of the joystick.
INT axis - The axis of the joystick.

Returns

INT : state for the given axis.


Mod_joy
Constants None
Imported:
JOYHATCENTEREDJOYHATDOWNJOYHATLEFTJOYHATLEFTDOWNJOYHATLEFTUPJOYHATRIGHTJOYHATRIGHTDOWNJOYHATRIGHTUPJOYHATUP
Functions Getjoyposition()Joyaxes()Joybuttons()Joygetaxis()Joygetball()Joygetbutton()Joygethat()Joyname()Joynumaxes()Joynumballs()Joynumber()Joynumbuttons()Joynumhats()Joynumjoysticks()Joyselect()