Joy numhats

From Bennu Wiki
Jump to: navigation, search


Syntax

INT joy_numhats ( [ <INT JoyID> ] )

Description

Returns the number of hats on the specified joystick. If no joystick is specified, the number of hats on the currently selected joystick will be returned.

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

Parameters

[INT JoyID] - The JoyID of the joystick.

Returns

INT : The number of hats.


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