mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +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:
@@ -27,6 +27,11 @@ namespace love
|
||||
namespace keyboard
|
||||
{
|
||||
|
||||
Keyboard::Keyboard()
|
||||
{
|
||||
moduleType = M_KEYBOARD;
|
||||
}
|
||||
|
||||
bool Keyboard::getConstant(const char *in, Keyboard::Key &out)
|
||||
{
|
||||
return keys.find(in, out);
|
||||
|
||||
Reference in New Issue
Block a user