sdlwindow: replace goto with bool flag

This commit is contained in:
Simon Ser 2021-07-28 09:29:00 +02:00
parent f44db16b1b
commit e678e0c0b2

View file

@ -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();