Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map keyboard keys and joypad buttons for the same controller #189

Open
helviojr opened this issue Dec 20, 2022 · 1 comment
Open

Map keyboard keys and joypad buttons for the same controller #189

helviojr opened this issue Dec 20, 2022 · 1 comment

Comments

@helviojr
Copy link

I am not even sure if this is the correct place, but I'm trying to use Atari 2600 emulator with an Atari 2600 controller. The problem: the emulator expects controller 1 has its 5 buttons PLUS the console buttons (select, reset, color etc.), but, as expected, the controller has only its 5 buttson (fire, up, down, right and left).

If I try to use keyboard keys to map console's keys, the emulator expects I use the keyboard for all (controller is ignored). If I configure the mapping using the controller, I only get 5 commands, and can't even start the games.

Isn't there a way to have both keyboard for some keys, controller for others, on the same joypad? Or is that a limitation on libretro?

@garbear
Copy link
Member

garbear commented Dec 21, 2022

Unfortunately, this seemingly simple use case isn't supported in Kodi yet. Such "libretro controllers" can only be controlled with a single Kodi controller, and keyboards can't be used to control any libretro controllers.

The next feature I'm working on is a "Player Manager" that can map basically any input to any other input. It'll support both injective (two kodis, one libretro) and surjective (one kodi, two libretros) mapping. And the keyboard can come in and cover any unmapped buttons.

So a solution is planned, but it'll be a while before it's ready given my current limited time for Kodi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants