Difference between revisions of "love.joystick.open"

Line 15: Line 15:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Opens up a joystick to be used.}}
 
{{#set:Description=Opens up a joystick to be used.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.joystick.open}}
 
{{i18n|love.joystick.open}}

Revision as of 10:31, 25 March 2011

Opens up a joystick to be used, i.e. makes it ready to use. By default joysticks that are available at the start of your game will be opened.

NOTE: Unlike conventional Lua indexes, joysticks begin counting from 0. To to open the first joystick, you would use love.joystick.open(0)

Function

Synopsis

love.joystick.open( joystick )

Arguments

number joystick
The joystick to be opened

Returns

Nothing.

See Also


Other Languages