cock.reloadJoysticks

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


Personal tools