Difference between revisions of "love.joystick"

Line 1: Line 1:
 
Provides an interface to the user's joystick.
 
Provides an interface to the user's joystick.
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::love.joystick]]
+
{{#ask: [[Category:Functions]] [[parent::love.joystick]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 
== Enums ==
 
== Enums ==
{{#ask: [[Category:Enums]] [[parent::love.joystick]]
+
{{#ask: [[Category:Enums]] [[parent::love.joystick]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
[[Category:Modules]]
 
{{#set:Description=Provides an interface to the user's joystick.}}
 
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
 
+
[[Category:Modules]]
 +
{{#set:Description=Provides an interface to the user's joystick.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.joystick}}
 
{{i18n|love.joystick}}

Revision as of 12:31, 25 March 2011

Provides an interface to the user's joystick.

Functions

love.joystick.closeCloses a joystick.
love.joystick.getAxesReturns the position of each axis.
love.joystick.getAxisReturns the direction of the axis.
love.joystick.getBallReturns the change in ball position.
love.joystick.getHatReturns the direction of a hat.
love.joystick.getNameReturns the name of a joystick.
love.joystick.getNumAxesReturns the number of axes on the joystick.
love.joystick.getNumBallsReturns the number of balls on the joystick.
love.joystick.getNumButtonsReturns the number of buttons on the joystick.
love.joystick.getNumHatsReturns the number of hats on the joystick.
love.joystick.getNumJoysticksReturns how many joysticks are available.
love.joystick.isDownChecks if a button on a joystick is pressed.
love.joystick.isOpenChecks if the joystick is open.
love.joystick.openOpens up a joystick to be used.

Enums

JoystickHatJoystick hat positions.

See Also


Other Languages