Difference between revisions of "love.joystick.reload"

m
Line 1: Line 1:
{{newin|[[0.8.1]]|081|type=function}}
+
{{newin|[[0.9.0]]|090|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.
  

Revision as of 19:04, 28 March 2013

Available since LÖVE 0.9.0
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