mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
* 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
This commit is contained in:
parent
2ed334b2be
commit
42e444ea0b
1 changed files with 1 additions and 8 deletions
|
@ -653,7 +653,6 @@ static void IN_ProcessEvents( void )
|
||||||
SDL_Event e;
|
SDL_Event e;
|
||||||
const char *p = NULL;
|
const char *p = NULL;
|
||||||
int key = 0;
|
int key = 0;
|
||||||
int mx = 0, my = 0;
|
|
||||||
|
|
||||||
if( !SDL_WasInit( SDL_INIT_VIDEO ) )
|
if( !SDL_WasInit( SDL_INIT_VIDEO ) )
|
||||||
return;
|
return;
|
||||||
|
@ -694,10 +693,7 @@ static void IN_ProcessEvents( void )
|
||||||
|
|
||||||
case SDL_MOUSEMOTION:
|
case SDL_MOUSEMOTION:
|
||||||
if (mouseActive)
|
if (mouseActive)
|
||||||
{
|
Com_QueueEvent( 0, SE_MOUSE, e.motion.xrel, e.motion.yrel, 0, NULL );
|
||||||
mx += e.motion.xrel;
|
|
||||||
my += e.motion.yrel;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
|
@ -737,9 +733,6 @@ static void IN_ProcessEvents( void )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mx || my)
|
|
||||||
Com_QueueEvent( 0, SE_MOUSE, mx, my, 0, NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue