1
0
Fork 0

Detect joystick disconnection

This commit is contained in:
Frederic Bouvier 2011-01-30 21:14:32 +01:00
parent 287cc74965
commit 257e3390c9

View file

@ -275,6 +275,8 @@ void FGJoystickInput::update( double dt )
continue;
js->read(&buttons, axis_values);
if (js->notWorking()) // If js is disconnected
continue;
// Fire bindings for the axes.
for (int j = 0; j < bindings[i].naxes; j++) {