love.joystick.reload
Available since LÖVE 0.8.1 |
This function is not supported in earlier versions. |
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.
![]() |
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info