aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-16 17:45:10 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-16 17:45:10 +0000
commitd991ff4a85ab475f78d2a17a44cd8144aa4c7a1c (patch)
tree7ba21cec7f18555ac6c878afe2b115471d66ce29 /code/sdl
parentbe835bad3139b2f1437e81c1477415e9335c2e80 (diff)
downloadioquake3-aero-d991ff4a85ab475f78d2a17a44cd8144aa4c7a1c.tar.gz
ioquake3-aero-d991ff4a85ab475f78d2a17a44cd8144aa4c7a1c.zip
* Revert r1341 as there doesn't seem to be a lot of point to the change and it
potentially will cause input events to be queued in a different order to that in which they were received git-svn-id: svn://svn.icculus.org/quake3/trunk@1428 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sdl')
-rw-r--r--code/sdl/sdl_input.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c
index 6688b84..d6005fb 100644
--- a/code/sdl/sdl_input.c
+++ b/code/sdl/sdl_input.c
@@ -653,7 +653,6 @@ static void IN_ProcessEvents( void )
SDL_Event e;
const char *p = NULL;
int key = 0;
- int mx = 0, my = 0;
if( !SDL_WasInit( SDL_INIT_VIDEO ) )
return;
@@ -694,10 +693,7 @@ static void IN_ProcessEvents( void )
case SDL_MOUSEMOTION:
if (mouseActive)
- {
- mx += e.motion.xrel;
- my += e.motion.yrel;
- }
+ Com_QueueEvent( 0, SE_MOUSE, e.motion.xrel, e.motion.yrel, 0, NULL );
break;
case SDL_MOUSEBUTTONDOWN:
@@ -737,9 +733,6 @@ static void IN_ProcessEvents( void )
break;
}
}
-
- if(mx || my)
- Com_QueueEvent( 0, SE_MOUSE, mx, my, 0, NULL );
}
/*