(2017-03-05, 10:29)Shani-08 Wrote: Joystick mode just works with joy stick without any button. Problem is, this is a default. The joystick module is enabled by default and anyone taking the nightly (or rc1 when it is released) will have to disable it after installation.
This is the default because we need control over how buttons are mapped. I've never seen anything like this weird keyboard mode that uses some button maps hidden in Android. This is clearly to support java apps that don't need to carry extra joystick code, but Kodi needs access to joysticks without this weird keyboard shim.
The real solution is to have 100% of joysticks working out of the box. When joysticks don't work, it's because I haven't finished working on the problem.
The idea behind the controller window is that, in the rare cases it's needed, the user only has to see it once. After that, they can share their button map here, and it'll be included in all future releases of Kodi for all to enjoy.
On Android, it sucks to copy the button map off the internal sd card. There's been talk of an in-app GUI that can share your button map automatically, but this is a long way off.
(2017-03-05, 10:29)Shani-08 Wrote: I think I should also look into the code and see if I can help. I am just trying to achieve the state where default Kodi krypton installation works with shield out of the box and sleep issue is resolved.
There's a whole bunch of XML settings for Android in
https://github.com/xbmc/xbmc/tree/master...aging/xbmc. There's a high chance that tweaking one of these, say to disable this keyboard shim, might fix the problem.
I'll keep digging into the code side of this. There's some weird idiosyncrasies with treating buttons as axes, so this might be a possible source of the bug.