xbmc / peripheral.joystick

Kodi joystick support (drivers and button maps)
GNU General Public License v2.0
24 stars 46 forks source link

Joystick interfaces disabled when invalid driver selected #183

Open wberrier opened 4 years ago

wberrier commented 4 years ago

My settings file looked like this:

<settings version="2">
    <setting id="driver_linux">1</setting>
    <setting id="driver_sdl" default="true">1</setting>
</settings>

I'm not sure how it got into that state (I've used this addon and settings for years through multiple upgrades). With the above config, I saw this in the kodi log:

2020-07-03 13:51:59.201 T:140146413371840   DEBUG: CAddonSettings[peripheral.joystick]: loading setting definitions
2020-07-03 13:51:59.201 T:140146413371840   DEBUG: CAddonSettings[peripheral.joystick]: loading setting values
2020-07-03 13:51:59.201 T:140146413371840   DEBUG: CSettingsManager: requested setting (driver_sdl) was not found.
2020-07-03 13:51:59.201 T:140146413371840   DEBUG: CAddonSettings[peripheral.joystick]: failed to find definition for setting driver_sdl. Creating a setting on-the-fly...
2020-07-03 13:51:59.201 T:140146413371840    INFO: AddOnLog: Joystick Support: Enabling joystick interface "udev"
2020-07-03 13:51:59.201 T:140146413371840    INFO: AddOnLog: Joystick Support: Disabling joystick interface "udev"

It tries and fails with the sdl log, then goes to udev (which I had selected in the gui menu) and immediately disables it. (NOTE: I was able to repeat these same results when choosing the "Linux" driver from the gui as well).

I noticed on a fresh config I had:

<settings version="2">
    <setting id="driver_linux" default="true">0</setting>
</settings>

Once I used that config, it started working.