kodi-game / game.libretro

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

Fix broken input in Nintendo DS cores #124

Closed garbear closed 1 month ago

garbear commented 2 months ago

Description

The DeSmuME buttonmap added in https://github.com/kodi-game/game.libretro.desmume/pull/4 contains the RETRO_DEVICE_POINTER feature, however apparently relative pointers are unimplemented: https://github.com/kodi-game/game.libretro/blob/2cb1ed77d3a31d73301447c60f600eaebccd2f07/src/libretro/LibretroTranslator.cpp#L617

case RETRO_DEVICE_POINTER:
{
  break; // TODO
}

This was breaking the input for NDS cores, as the game.controller.nds layout wouldn't match to any libretro features.

How has this been tested?

Before: Error about RETRO_DEVICE_POINTER not defined for mapto XML attribute, no input, empty controller in the in-game "Controls" button mapper.

After: Buttons appear in the in-game controller mapper, input works.