Try decreasing number of events, testing period
This commit is contained in:
@@ -455,9 +455,17 @@ Event TranslateSDLEvent(SDL_Event *input_event) {
|
||||
}
|
||||
|
||||
inline void AddEvent(Array<Event> *events, Event ev) {
|
||||
if (ev.kind == EVENT_TEXT_INPUT && (ev.ctrl || ev.alt || ev.super)) {
|
||||
bool any_special_modifiers = (ev.ctrl || ev.alt || ev.super);
|
||||
if (ev.kind == EVENT_TEXT_INPUT && any_special_modifiers) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ev.kind == EVENT_KEY_PRESS && !any_special_modifiers && ev.key >= SDLK_A && ev.key <= SDLK_Z) {
|
||||
if (ev.key != SDLK_RETURN) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (ev.kind == EVENT_NONE) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user