Difference between revisions of "love.joystick.reload"

m
(Removed)
 
Line 1: Line 1:
{{newin|[[0.9.0]]|090|type=function}}
 
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.
 
 
{{notice|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 ===
 
<source lang="lua">
 
love.joystick.reload( )
 
</source>
 
=== Arguments ===
 
None.
 
=== Returns ===
 
Nothing.
 
== See Also ==
 
* [[parent::love.joystick]]
 
[[Category:Functions]]
 
{{#set:Description=Updated joystick index}}
 
== Other Languages ==
 
{{i18n|love.joystick.reload}}
 

Latest revision as of 03:01, 26 August 2013