Joystick:getJoystickType

Available since LÖVE 12.0
This function is not supported in earlier versions.

Gets the JoystickType of the Joystick.

JoystickTypes are broader categories than GamepadTypes.

Function

Synopsis

joysticktype = Joystick:getJoystickType( )

Arguments

None.

Returns

JoystickType joysticktype
The type of the joystick, or "unknown" if it can't be determined.

See Also


Other Languages