sdlwindow: replace goto with bool flag
This commit is contained in:
parent
f44db16b1b
commit
e678e0c0b2
1 changed files with 8 additions and 5 deletions
|
@ -149,6 +149,7 @@ void inputSDLThreadRun( void )
|
|||
|
||||
if ( event.type == SDL_KEYUP && mod & KMOD_LGUI )
|
||||
{
|
||||
bool handled = true;
|
||||
switch ( key )
|
||||
{
|
||||
case KEY_F:
|
||||
|
@ -162,12 +163,14 @@ void inputSDLThreadRun( void )
|
|||
g_bTakeScreenshot = true;
|
||||
break;
|
||||
default:
|
||||
goto client;
|
||||
|
||||
handled = false;
|
||||
}
|
||||
if ( handled )
|
||||
{
|
||||
break;
|
||||
}
|
||||
client:
|
||||
}
|
||||
|
||||
wlserver_lock();
|
||||
wlserver_key( key, event.type == SDL_KEYDOWN, event.key.timestamp );
|
||||
wlserver_unlock();
|
||||
|
|
Loading…
Reference in a new issue