Difference between revisions of "love.joystick.getName"

m (1 revision: Importing from potato (again).)
(Add missing argument)
Line 1: Line 1:
 
 
Returns the name of a joystick.
 
Returns the name of a joystick.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
name = love.joystick.getName( )
+
name = love.joystick.getName( joystick )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None.
+
{{param|number|joystick|The joystick to be checked}}
 
=== Returns ===
 
=== Returns ===
 
{{param|string|name|the name}}
 
{{param|string|name|the name}}

Revision as of 16:39, 13 November 2010

Returns the name of a joystick.

Function

Synopsis

name = love.joystick.getName( joystick )

Arguments

number joystick
The joystick to be checked

Returns

string name
the name

See Also