peripheral.joystick icon indicating copy to clipboard operation
peripheral.joystick copied to clipboard

Detection delay

Open DocMAX opened this issue 6 years ago • 3 comments

My Xbox Controller is detected by Kodi with a delay of about 5 sec. With the xboxdrv driver there is no delay and the controller works imedatelly after connection/Kodi start.

DocMAX avatar Jan 18 '18 20:01 DocMAX

Wireless controller, right? If you push a button it should detect immediately, though the first button press won't have any effect. This is a problem with the joystick driver.

garbear avatar Jan 18 '18 20:01 garbear

Yes wireless. I have to push a button and then wait a few seconds. I dont have this effect with xboxdrv, but with xpad driver.

DocMAX avatar Jan 21 '18 10:01 DocMAX

When the wireless receiver is connected, xpad shows 4 joysticks, even though one 1 is connected. (This might be fixed in recent kernels). To solve this, wireless Xbox controllers are only detected in Kodi once the first button is pressed. However, once you press a button the controller should be detected immediately, and the second button press should work right away. This part seems to be broken, so just in case I added a failsafe scan every 5 seconds.

I'll look into why the first button press doesn't activate the controller immediately. If xpad has been fixed, then I'll remove this workaround completely.

garbear avatar Jan 21 '18 20:01 garbear