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 | ||
}} | }} | ||
+ | == See Also == | ||
+ | * [[parent::love]] | ||
[[Category:Modules]] | [[Category:Modules]] | ||
{{#set:Description=Provides an interface to the user's joystick.}} | {{#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 10:31, 25 March 2011
Provides an interface to the user's joystick.
Contents
Functions
love.joystick.close | Closes a joystick. |
love.joystick.getAxes | Returns the position of each axis. |
love.joystick.getAxis | Returns the direction of the axis. |
love.joystick.getBall | Returns the change in ball position. |
love.joystick.getHat | Returns the direction of a hat. |
love.joystick.getName | Returns the name of a joystick. |
love.joystick.getNumAxes | Returns the number of axes on the joystick. |
love.joystick.getNumBalls | Returns the number of balls on the joystick. |
love.joystick.getNumButtons | Returns the number of buttons on the joystick. |
love.joystick.getNumHats | Returns the number of hats on the joystick. |
love.joystick.getNumJoysticks | Returns how many joysticks are available. |
love.joystick.isDown | Checks if a button on a joystick is pressed. |
love.joystick.isOpen | Checks if the joystick is open. |
love.joystick.open | Opens up a joystick to be used. |
Enums
JoystickHat | Joystick hat positions. |
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info