Browse Source

disable keyrepeat by default (to satisfy many people who are too paranoid about the consistency with the original game)

Wei Mingzhi 6 years ago
parent
commit
eaa87c8a5a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      input.c

+ 4 - 0
input.c

@@ -244,7 +244,11 @@ PAL_UpdateKeyboardState(
          if (dwCurrentTime > rgdwKeyLastTime[i])
          {
             PAL_KeyDown(g_KeyMap[i][1], (rgdwKeyLastTime[i] != 0));
+#ifdef PAL_ALLOW_KEYREPEAT
             rgdwKeyLastTime[i] = dwCurrentTime + (rgdwKeyLastTime[i] == 0 ? 200 : 75);
+#else
+            rgdwKeyLastTime[i] = 0xFFFFFFFF;
+#endif
          }
       }
       else