love.joystick.reload

Rescans for joysticks, making newly plugged ones available, and removing unplugged ones.

NOTE: The joystick indexes can, and will change, if you rely on them, you could try grabbing the names beforehand and then updating their indices by matching the names afterwards.

O.png This is a resource-heavy function, do not run this often, and definitely not every frame. This is best run when entering a keybinds menu, for instance.  


Function

Synopsis

love.joystick.reload( )

Arguments

None.

Returns

Nothing.

See Also


Other Languages