Enable Joystick Support on Kodi

I installed kodi from the default repository but found that Kodi doesn’t detect any connected joysticks by default. I tried to use the latest version by downloading and compiling from github. However this version couldn’t detect joysticks either.

I searched further and found that Kodi requires an addon called ‘kodi-peripheral-joystick’. I installed this from RPMFusion but had no effect. I am not sure what to do next.

I installed the latest nightly on an Ubuntu VM and found joystick support was enabled out of the box. So I know the problem is very specific here.

Could anyone shed some light on this?