mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Automated formatting fix
This commit is contained in:
@@ -50,9 +50,9 @@ namespace sdl
|
||||
|
||||
SDL_EnableUNICODE(1);
|
||||
|
||||
while(SDL_PollEvent(&e))
|
||||
while (SDL_PollEvent(&e))
|
||||
{
|
||||
if(convert(e, message))
|
||||
if (convert(e, message))
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace sdl
|
||||
{
|
||||
static SDL_Event e;
|
||||
|
||||
while(SDL_PollEvent(&e))
|
||||
while (SDL_PollEvent(&e))
|
||||
{
|
||||
// Do nothing with 'e' ...
|
||||
}
|
||||
@@ -107,11 +107,14 @@ namespace sdl
|
||||
m.joystick.index = e.jbutton.which;
|
||||
return true;
|
||||
case SDL_ACTIVEEVENT:
|
||||
if (e.active.state & SDL_APPINPUTFOCUS) {
|
||||
if (e.active.state & SDL_APPINPUTFOCUS)
|
||||
{
|
||||
m.type = Event::TYPE_FOCUS;
|
||||
m.focus.f = (e.active.gain != 0);
|
||||
return true;
|
||||
} else break;
|
||||
}
|
||||
else
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
m.type = Event::TYPE_QUIT;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user