Difference between revisions of "love.joystick.reload"
(Create page) |
|||
Line 1: | Line 1: | ||
+ | {{newin|[[0.8.1]]|081|type=function}} | ||
Rescans for joysticks, making newly plugged ones available, and removing unplugged ones. | Rescans for joysticks, making newly plugged ones available, and removing unplugged ones. | ||
Line 16: | Line 17: | ||
* [[parent::love.joystick]] | * [[parent::love.joystick]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description= | + | {{#set:Description=Updated joystick index}} |
− | |||
== Other Languages == | == Other Languages == | ||
{{i18n|love.joystick.reload}} | {{i18n|love.joystick.reload}} |
Revision as of 13:46, 5 June 2012
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