love.joystick

Provides an interface to connected joysticks.

Types

JoystickRepresents a physical joystick.Added since 0.9.0

Functions

love.joystick.closeCloses a joystick. Removed in 0.9.0
love.joystick.getAxesReturns the position of each axis. Removed in 0.9.0
love.joystick.getAxisReturns the direction of the axis. Removed in 0.9.0
love.joystick.getBallReturns the change in ball position. Removed in 0.9.0
love.joystick.getHatReturns the direction of a hat. Removed in 0.9.0
love.joystick.getJoystickCountGets the number of connected joysticks.Added since 0.9.0
love.joystick.getJoysticksGets a list of connected Joysticks.Added since 0.9.0
love.joystick.getNameReturns the name of a joystick. Removed in 0.9.0
love.joystick.getNumAxesReturns the number of axes on the joystick. Removed in 0.9.0
love.joystick.getNumBallsReturns the number of balls on the joystick. Removed in 0.9.0
love.joystick.getNumButtonsReturns the number of buttons on the joystick. Removed in 0.9.0
love.joystick.getNumHatsReturns the number of hats on the joystick. Removed in 0.9.0
love.joystick.getNumJoysticksReturns how many joysticks are available. Removed in 0.9.0
love.joystick.isDownChecks if a button on a joystick is pressed. Removed in 0.9.0
love.joystick.isOpenChecks if the joystick is open. Removed in 0.9.0
love.joystick.openOpens up a joystick to be used. Removed in 0.9.0
love.joystick.setGamepadMappingBinds a virtual gamepad input to a button, axis or hat.Added since 0.9.0

Enums

GamepadAxisVirtual gamepad axes.Added since 0.9.0
GamepadButtonVirtual gamepad buttons.Added since 0.9.0
JoystickHatJoystick hat positions.
JoystickInputTypeTypes of Joystick inputs.Added since 0.9.0

See Also


Other Languages

Personal tools