You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 likeCheatLife = w
toCheatLife = 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 thestatic 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.
What is your build target?
Nintendo Switch
The text was updated successfully, but these errors were encountered: