JoystickButtonPressed
From OxeyeWiki
joystickButtonPressed | ||
This hook is called when a joystick button changes state from not pressed to pressed. | ||
Parameter | Type | Description |
joystick | A number | This is the joystick Id of the joystick the button belongs to. |
button | A number | This is button number on the joystick. |
Daisymoon Video Lib |
---|
|
Example
local function joystickButtonHasBeenPressed(joy, btn) print("joystick "..joy.. " button "..btn.. " pressed.") end hook.add("joystickButtonPressed", joystickButtonHasBeenPressed)