mirror of
https://github.com/love2d/love.git
synced 2026-08-13 09:00:54 +02:00
Renamed love.mouse.setGrab to love.mouse.setGrabbed (resolves issue #720)
This commit is contained in:
@@ -179,10 +179,10 @@ int w_isVisible(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_setGrab(lua_State *L)
|
||||
int w_setGrabbed(lua_State *L)
|
||||
{
|
||||
bool b = luax_toboolean(L, 1);
|
||||
instance->setGrab(b);
|
||||
instance->setGrabbed(b);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ static const luaL_Reg functions[] =
|
||||
{ "setVisible", w_setVisible },
|
||||
{ "isVisible", w_isVisible },
|
||||
{ "getPosition", w_getPosition },
|
||||
{ "setGrab", w_setGrab },
|
||||
{ "setGrabbed", w_setGrabbed },
|
||||
{ "isGrabbed", w_isGrabbed },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user