mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Add hasFocus (issue #117)
This commit is contained in:
@@ -922,6 +922,12 @@ namespace opengl
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_hasFocus(lua_State * L)
|
||||
{
|
||||
luax_pushboolean(L, instance->hasFocus());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
// List of functions to wrap.
|
||||
static const luaL_Reg functions[] = {
|
||||
@@ -1007,6 +1013,8 @@ namespace opengl
|
||||
|
||||
{ "translate", w_translate },
|
||||
|
||||
{ "hasFocus", w_hasFocus },
|
||||
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user