mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
This commit is contained in:
@@ -25,6 +25,11 @@ namespace love
|
||||
namespace mouse
|
||||
{
|
||||
|
||||
Mouse::Mouse()
|
||||
{
|
||||
moduleType = M_MOUSE;
|
||||
}
|
||||
|
||||
bool Mouse::getConstant(const char *in, Button &out)
|
||||
{
|
||||
return buttons.find(in, out);
|
||||
|
||||
Reference in New Issue
Block a user