From a801ad7505ece50233451e3796f22d89588ca0dd Mon Sep 17 00:00:00 2001 From: Aloshi Date: Sat, 21 Jul 2012 14:16:53 -0500 Subject: [PATCH] Fix for the "stuck enter key" bug (now SDL's key repeat is disabled on game launch then re-eanbled on termination). --- src/components/GuiGameList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/GuiGameList.cpp b/src/components/GuiGameList.cpp index 0fbc50184..94dc0dcae 100644 --- a/src/components/GuiGameList.cpp +++ b/src/components/GuiGameList.cpp @@ -1,6 +1,7 @@ #include "GuiGameList.h" #include "../InputManager.h" #include +#include GuiGameList::GuiGameList(SystemData* system) { @@ -33,7 +34,9 @@ void GuiGameList::onInput(InputManager::InputButton button, bool keyDown) { if(button == InputManager::BUTTON1 && keyDown) { + SDL_EnableKeyRepeat(0, 0); mSystem->launchGame(mList->getSelection()); + SDL_EnableKeyRepeat(500, 100); } }