libretro / ludo

A libretro frontend written in golang
https://ludo.libretro.com/
GNU General Public License v3.0
587 stars 68 forks source link

Input not working on PCE SuperGrafx #115

Closed kivutar closed 5 years ago

kivutar commented 5 years ago

It's the only core affected

RobLoach commented 5 years ago

Confirmed... The descriptors look normal: https://github.com/libretro/beetle-supergrafx-libretro/blob/master/libretro.cpp#L1539-L1632

RobLoach commented 5 years ago

Found it. It's because beetle-supergrafx checks the input type in update_input: https://github.com/libretro/beetle-supergrafx-libretro/blob/master/libretro.cpp#L1677

Ludo will have to call retro_set_controller_port_device() and set each device in each port to RETRO_DEVICE_JOYPAD.

See RETRO_ENVIRONMENT_SET_CONTROLLER_INFO for more info.

RobLoach commented 5 years ago

Affects FCEUMM too.

RobLoach commented 5 years ago

Here's how I fixed it in SDLArch: https://github.com/heuripedes/sdlarch/pull/11/files

kivutar commented 5 years ago

Thanks for your help on this @RobLoach I'm now able to play Twin Dragon on FCEUMM, which is awesome