http://www.oxeyegames.com/wiki/index.php?title=JoystickButtonPressed&feed=atom&action=historyJoystickButtonPressed - Revision history2024-03-29T11:04:16ZRevision history for this page on the wikiMediaWiki 1.16.0http://www.oxeyegames.com/wiki/index.php?title=JoystickButtonPressed&diff=364&oldid=prevThewreck: Created page with '{{EngineHook| joystickButtonPressed | This hook is called when a joystick button changes state from not pressed to pressed. | {{MethodParam|joystick|A number|This is the joystick...'2010-01-19T20:16:02Z<p>Created page with '{{EngineHook| joystickButtonPressed | This hook is called when a joystick button changes state from not pressed to pressed. | {{MethodParam|joystick|A number|This is the joystick...'</p>
<p><b>New page</b></p><div>{{EngineHook|<br />
joystickButtonPressed<br />
|<br />
This hook is called when a joystick button changes state from not pressed to pressed.<br />
|<br />
{{MethodParam|joystick|A number|This is the joystick Id of the joystick the button belongs to.}}<br />
{{MethodParam|button|A number|This is button number on the joystick.}}<br />
}}<br />
=== Example ===<br />
<pre><br />
local function joystickButtonHasBeenPressed(joy, btn)<br />
print("joystick "..joy.. " button "..btn.. " pressed.")<br />
end<br />
<br />
hook.add("joystickButtonPressed", joystickButtonHasBeenPressed)<br />
</pre></div>Thewreck