File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -258,11 +258,13 @@ static void ReadKeys(void)
258
258
// because it compares the raw key input with the remapped held keys.
259
259
// Note that newAndRepeatedKeys is never remapped either.
260
260
261
+ #ifdef BUGFIX
262
+ if (keyInput != 0 && gMain .heldKeysRaw == keyInput )
263
+ #else
261
264
if (keyInput != 0 && gMain .heldKeys == keyInput )
265
+ #endif
262
266
{
263
- gMain .keyRepeatCounter -- ;
264
-
265
- if (gMain .keyRepeatCounter == 0 )
267
+ if (-- gMain .keyRepeatCounter == 0 )
266
268
{
267
269
gMain .newAndRepeatedKeys = keyInput ;
268
270
gMain .keyRepeatCounter = gKeyRepeatContinueDelay ;
@@ -285,6 +287,10 @@ static void ReadKeys(void)
285
287
286
288
if (JOY_HELD (L_BUTTON ))
287
289
gMain .heldKeys |= A_BUTTON ;
290
+ #ifdef BUGFIX
291
+ if (JOY_REPEAT (L_BUTTON ))
292
+ gMain .newAndRepeatedKeys |= A_BUTTON ;
293
+ #endif
288
294
}
289
295
290
296
if (JOY_NEW (gMain .watchedKeysMask ))
You can’t perform that action at this time.
0 commit comments