Try decreasing number of events, testing period

This commit is contained in:
Krzosa Karol
2026-01-06 13:40:45 +01:00
parent 94b3bc832b
commit 73a19e2260

View File

@@ -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;
}