Browse Source

also disable keyrepeat for touchscreen by default

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

+ 4 - 0
input.c

@@ -864,6 +864,10 @@ PAL_TouchRepeatCheck(
    VOID
 )
 {
+   if (!gConfig.fEnableKeyRepeat)
+   {
+      return;
+   }
    if (gFinger1 != -1 && SDL_GetTicks() > g_dwFinger1Time)
    {
       PAL_UnsetTouchAction(g_iPrevTouch1);