kodi-game / game.libretro

Libretro compatibility layer for the Kodi Game API
GNU General Public License v2.0
37 stars 26 forks source link

Allow analog input for RETRO_DEVICE_JOYPAD #116

Closed garbear closed 10 months ago

garbear commented 10 months ago

Description

As title says, this PR allows analog button/stick input even if the type is RETRO_DEVICE_JOYPAD.

This is to allow support for analog stick input in Vice. Vice requires the device type to be RETRO_DEVICE_JOYPAD, but still queries for analog stick values, so don't throw these values away.

Even though Vice requires the type to be RETRO_DEVICE_JOYPAD, you can see it checking analog stick values here: https://github.com/libretro/vice-libretro/blob/master/libretro/libretro-mapper.c#L1046-L1049

How has this been tested?

Will test when vice cores have been updated.