2015-07-01, 23:03
(2015-07-01, 21:13)Montellese Wrote: EDIT2: Looks like a deadlock between the main thread in CPeripheralBusAddon::GetPeripheralsWithFeature() and the thread responsible for scanning for new devices which is stuck at CPeripheralBusAddon::UnregisterRemovedDevices() callin CPeripherals::OnDeviceDeleted().
I fixed a different deadlock in CPeripheralBusAddon yesterday: https://github.com/garbear/xbmc/commit/71f1a9b . Looks like it wasn't the only one
(2015-07-01, 21:13)Montellese Wrote: EDIT3: And the reason why the controllers that are constantly detected never match the ones that have previously been detected is because the call to CJoystickDirectInput::Initialize() which is performed later changes the button, hat and axis count but the comparison is done between an uninitialized and an initialized CJoystickDirectInput object which will most likely always fail.
I had this same problem in Cocoa: https://github.com/kodi-game/peripheral....it/22223d3 . I'll see if I can duplicate the fix