Difference between revisions of "cock.reloadJoysticks"

(Created page with "Attempts to pick up previously used joysticks. == Synopsis == === Function === <source lang="Lua">cock.reloadJoysticks ( self )</source> === Arguments === {{param|table|self|An o...")
 
m
 
Line 1: Line 1:
 
Attempts to pick up previously used joysticks.
 
Attempts to pick up previously used joysticks.
== Synopsis ==
+
== Function ==
=== Function ===
+
=== Synopsis ===
 
<source lang="Lua">cock.reloadJoysticks ( self )</source>
 
<source lang="Lua">cock.reloadJoysticks ( self )</source>
 
=== Arguments ===
 
=== Arguments ===

Latest revision as of 15:07, 2 September 2013

Attempts to pick up previously used joysticks.

Function

Synopsis

cock.reloadJoysticks ( self )

Arguments

table self
An object to use.

Remarks

If function fails to find a joystick, it will keep a reference to it for further attempts. If layout only had one joystick utilized, and at least one joystick is present, then the function will temporairly use available joystick in place of previously used. The reason why it only will do so for only one joystick is because if controls were spread to more than one joystick, re-picking them would mess up the layout, forcing player to re-define all controls, which makes re-picking joysticks meaningless to begin with. Dummy joysticks will be replaced with actual ones as soon as it possible. Re-defining controls for new joystick used temporairly removes previous joystick record, since it's no longer needed by definition, and it can't be picked up.

See also