Joy numbuttons

From Bennu Wiki
(Redirected from Joy buttons)
Jump to: navigation, search


Syntax

INT joy_numbuttons ( [ <INT JoyID> ] )

Description

Returns the number of buttons on the specified joystick. If no joystick is specified, the number of buttons 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().

Also called joy_buttons().

Parameters

[INT JoyID] - The JoyID of the joystick.

Returns

INT : The number of buttons.


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