Add love.mousefocus (partial issue #120) temporary name (see issue #573) and it's waiting for an exposed love.window to get a check, too

This commit is contained in:
Bart van Strien
2013-05-10 19:03:16 +02:00
parent 0a422daa75
commit 79d1a7a6ef
3 changed files with 11 additions and 0 deletions
+2
View File
@@ -180,6 +180,8 @@ Message *Event::convert(SDL_Event &e)
arg1 = new Variant(e.active.gain != 0);
if (e.active.state & SDL_APPINPUTFOCUS)
msg = new Message("focus", arg1);
else if (e.active.state & SDL_APPMOUSEFOCUS)
msg = new Message("mousefocus", arg1);
arg1->release();
break;
case SDL_QUIT: