Skip to content

Commit

Permalink
Add D-Pad comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AreaZR committed Oct 28, 2024
1 parent bd113b4 commit edd7357
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ static void ReadKeys(void)

// BUG: Key repeat won't work when pressing L using L=A button mode
// because it compares the raw key input with the remapped held keys.
// Note that newAndRepeatedKeys is never remapped either.

#ifdef BUGFIX
if (keyInput != 0 && gMain.heldKeysRaw == keyInput)
Expand Down Expand Up @@ -287,6 +286,10 @@ static void ReadKeys(void)

if (JOY_HELD(L_BUTTON))
gMain.heldKeys |= A_BUTTON;

// newAndRepeatedKeys is not remapped at all.
// Does not matter in vanilla since newAndRepeatedKeys
// is only checked with D-Pad values anyway.
}

if (JOY_NEW(gMain.watchedKeysMask))
Expand Down

0 comments on commit edd7357

Please sign in to comment.