input_init (mode)
Re-initializes the input devices. Useful if a second joystick has been plugged in since start of the application.
Parameters:
mode
2 for re-initializing the joysticks
Speed:
Slow
Example:
// press the "j" key for scanning joysticks
function on_j_event()
{
input_init(2);
beep();
}
See also:
joy_raw
,
joy2_raw
,
joy_rot
,
joy2_rot
,
joy_force
,
num_joysticks
,
joy_button
► latest version online