summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i_video.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/i_video.c b/src/i_video.c
index aaefd922..3412051b 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -502,13 +502,20 @@ void I_GetEvent(void)
event.data2 = sdlevent.key.keysym.unicode;
}
- D_PostEvent(&event);
+ if (event.data1 != 0)
+ {
+ D_PostEvent(&event);
+ }
break;
case SDL_KEYUP:
event.type = ev_keyup;
event.data1 = TranslateKey(&sdlevent.key.keysym);
- D_PostEvent(&event);
+
+ if (event.data1 != 0)
+ {
+ D_PostEvent(&event);
+ }
break;
/*