love.joystick

Provides an interface to connected joysticks. </b>

?> The 3DS console itself counts as a single joystick.

Functions

Name Description Notes
getJoystickCount Gets the number of connected joysticks  
getJoysticks Gets a list of connected Joysticks  
split Splits a joycon pair into two Switch only
merge Merges two separate joycon into one Switch only

Types

Gamepad

Represents a physical joystick. Also known as a joystick in LÖVE’s terminology. </b>

See also:

Name Description Notes
getAxes Gets the direction of each axis  
getAxis Gets the direction of an axis  
getButtonCount Gets the number of buttons on the joystick  
getGamepadAxis Gets the direction of a virtual gamepad axis  
getID Gets the joystick’s unique identifier  
getName Gets the name of the joystick  
getVibration Gets the current vibration motor strengths on a Joystick with rumble support  
isConnected Gets whether the Joystick is connected  
isDown Checks if a button on the Joystick is pressed  
isGamepad Gets whether the Joystick is recognized as a gamepad  
isGamepadDown Checks if a virtual gamepad button on the Joystick is pressed  
isVibrationSupported Gets whether the Joystick supports vibration  
setVibration Sets the vibration motor speeds on a Joystick with rumble support