Difference between revisions of "love.joystick"

(Applying listings to included added and removed fields.)
(Added types listing)
Line 1: Line 1:
Provides an interface to the user's joystick.
+
Provides an interface to connected joysticks.
 +
== Types ==
 +
{{#ask: [[Category:Types]] [[parent::love.joystick]] [[Concept:Current]]
 +
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 +
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
}}
 
== Functions ==
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::love.joystick]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[parent::love.joystick]] [[Concept:Current]]
Line 27: Line 38:
 
* [[love.joystickreleased]]
 
* [[love.joystickreleased]]
 
[[Category:Modules]]
 
[[Category:Modules]]
{{#set:Description=Provides an interface to the user's joystick.}}
+
{{#set:Description=Provides an interface to connected joysticks.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.joystick}}
 
{{i18n|love.joystick}}

Revision as of 18:25, 26 August 2013

Provides an interface to connected joysticks.

Types

Joystick Represents a physical joystick. Added since 0.9.0

Functions

love.joystick.close Closes a joystick. Added since 0.5.0 Removed in 0.9.0
love.joystick.getAxes Returns the position of each axis. Added since 0.5.0 Removed in 0.9.0
love.joystick.getAxis Returns the direction of the axis. Added since 0.5.0 Removed in 0.9.0
love.joystick.getBall Returns the change in ball position. Added since 0.5.0 Removed in 0.9.0
love.joystick.getGamepadMappingString Gets the full gamepad mapping string of the Joysticks which have the given GUID, or nil if the GUID isn't recognized as a gamepad. Added since 11.3
love.joystick.getHat Returns the direction of a hat. Added since 0.5.0 Removed in 0.9.0
love.joystick.getJoystickCount Gets the number of connected joysticks. Added since 0.9.0
love.joystick.getJoysticks Gets a list of connected Joysticks. Added since 0.9.0
love.joystick.getName Returns the name of a joystick. Added since 0.5.0 Removed in 0.9.0
love.joystick.getNumAxes Returns the number of axes on the joystick. Added since 0.5.0 Removed in 0.9.0
love.joystick.getNumBalls Returns the number of balls on the joystick. Added since 0.5.0 Removed in 0.9.0
love.joystick.getNumButtons Returns the number of buttons on the joystick. Added since 0.5.0 Removed in 0.9.0
love.joystick.getNumHats Returns the number of hats on the joystick. Added since 0.5.0 Removed in 0.9.0
love.joystick.getNumJoysticks Returns how many joysticks are available. Added since 0.5.0 Removed in 0.9.0
love.joystick.isDown Checks if a button on a joystick is pressed. Added since 0.5.0 Removed in 0.9.0
love.joystick.isOpen Checks if the joystick is open. Added since 0.5.0 Removed in 0.9.0
love.joystick.loadGamepadMappings Loads a gamepad mappings string or file created with love.joystick.saveGamepadMappings. Added since 0.9.2
love.joystick.open Opens up a joystick to be used. Added since 0.5.0 Removed in 0.9.0
love.joystick.saveGamepadMappings Saves the virtual gamepad mappings of all recently-used Joysticks that are recognized as gamepads. Added since 0.9.2
love.joystick.setGamepadMapping Binds a virtual gamepad input to a button, axis or hat. Added since 0.9.2

Enums

GamepadAxis Virtual gamepad axes. Added since 0.9.0
GamepadButton Virtual gamepad buttons. Added since 0.9.0
JoystickHat Joystick hat positions. Added since 0.5.0
JoystickInputType Types of Joystick inputs. Added since 0.9.0

See Also


Other Languages