Hey,
I have noticed there there is no Joystick input support in Kodi. I checked to see if the /usr/lib/kodi/kodi.bin is linked to SDL2, and it is not, and if i remember SDL2 is not one of the dependencies either. When the next build of Kodi comes out would it be possible to have SDL2 as one of the dependencies so that we can enable joystick support. I have successfully compiled SDL2 using the sdl2-rbp-git in the aur repository and it is not linked to xorg/X11 at all, just the proper rpi specific libs.
$this->bbcode_second_pass_code('', '[alarm@rpi ~]$ ldd /usr/local/lib/libSDL2-2.0.so.0
linux-vdso.so.1 (0x7eb03000)
libm.so.6 => /usr/lib/libm.so.6 (0x76e10000)
libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x76df2000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x76ddd000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x76db4000)
librt.so.1 => /usr/lib/librt.so.1 (0x76d9c000)
libc.so.6 => /usr/lib/libc.so.6 (0x76c5d000)
/usr/lib/ld-linux-armhf.so.3 (0x54ae8000)
libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x76c4f000)
libvcos.so => /opt/vc/lib/libvcos.so (0x76c3d000)
')