Don't call PressButton if the key pressed isn't in the index.

This commit is contained in:
arcum42 2020-07-03 21:56:46 -07:00
parent b45e524b2c
commit 6afee4ae0c
1 changed files with 2 additions and 1 deletions

View File

@ -152,6 +152,7 @@ static void AnalyzeKeyEvent(keyEvent &evt)
}
}
if (index != -1)
PressButton(pad, index);
//PAD_LOG("Key pressed:%d\n", index);