Joystick:getGamepadType

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

Gets the GamepadType of the Joystick, if it's recognized as a gamepad.

Function

Synopsis

gamepadtype = Joystick:getGamepadType( )

Arguments

None.

Returns

GamepadType gamepadtype
The type of the gamepad, or "unknown" if it can't be determined.

See Also


Other Languages