drc-sim-client icon indicating copy to clipboard operation
drc-sim-client copied to clipboard

Controller (Dis)Connect Events are not Being Called

Open opencma opened this issue 8 years ago • 2 comments

The libGDX controller manager does not detect a disconnect. The controller instance is still returned by Controllers.getControllers() with whatever state it had last.

Steps to reproduce:

  • Start DRC Sim with a controller plugged into the device.
  • Disconnect and reconnect the controller. (Optional press a button or move a joystick while disconnecting.)
  • The controller state will no longer be updated.

TODO: Investigate and report to libGDX if necessary.

opencma avatar Jun 10 '17 05:06 opencma

I have uploaded a small application that prints output from the controllers. Unfortunately, I do not have an Android compatible controller. @Grntrenchman, if you would not mind, please test to see if this bug is reproducible on Android.

Controller test: apk - jar - src

opencma avatar Jun 12 '17 05:06 opencma

No such bug here. I will try a few more times and edit if I get a different result. I used the apk.

screenshot_2017-06-12-02-00-12

Grntrenchman avatar Jun 12 '17 09:06 Grntrenchman