forked from snesrev/zelda3
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe your bug here. And how to reproduce it.
Alright, here's the deal. In the /src/platform/switch/zelda3.ini file, under the [KeyMap] section, it only supports keyboard keys. So, when we try to change something like CheatLife = w to CheatLife = L1 (or Lr, L3, Start, or anything like that), it simply doesn't work.
Now, what can we tweak to make these features work on the Switch? I've got a potential workaround.
In main.c, under the static int RemapSdlButton(int button) function, we could modify the mapping like this:
case SDL_CONTROLLER_BUTTON_LEFTSTICK: return kKeys_CheatLife;
Then, recompile it. The "X" button isn't used anyway, so it's fair game.
- But I can't say for sure if this will work. Will it? 😅
- And yeah, this could easily break the game for everyone else. That's definitely not ideal.
What is your build target?
Nintendo Switch
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working