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=Rescans for joystick}}
+
{{#set:Description=Updated joystick index}}
{{#set:Since=081}}
 
 
== 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.

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