summaryrefslogtreecommitdiff
path: root/src/i_video.c
diff options
context:
space:
mode:
authorSimon Howard2009-07-09 17:50:04 +0000
committerSimon Howard2009-07-09 17:50:04 +0000
commitd06dcf916776e58b1f476cf9320b5274a28957b1 (patch)
tree8105769fc715d0cdcbf4c9a6b20d1a92250d7ee6 /src/i_video.c
parentd91e3e86736f710265629e56dc77c1dec0b425e7 (diff)
parent24783792e5398a2d5af6b7220b68c46357d23e31 (diff)
downloadchocolate-doom-d06dcf916776e58b1f476cf9320b5274a28957b1.tar.gz
chocolate-doom-d06dcf916776e58b1f476cf9320b5274a28957b1.tar.bz2
chocolate-doom-d06dcf916776e58b1f476cf9320b5274a28957b1.zip
Merge from trunk.
Subversion-branch: /branches/raven-branch Subversion-revision: 1610
Diffstat (limited to 'src/i_video.c')
-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 a938b1f8..6f82e60a 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -662,13 +662,20 @@ void I_GetEvent(void)
event.data1 = TranslateKey(&sdlevent.key.keysym);
event.data2 = GetTypedChar(&sdlevent);
- 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;
/*