mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user