I got tired of the lack of joystick support for Kodi on the Raspberry Pi so last night I built a small script to handle it. It uses sdl to connect to the joystick and the Kodi JSON-API. It reads from the emulationstation joystick config for (hopefully) seamless integration.