Updated the new module changes to use more compile/link-time checking rather than runtime checking.

This commit is contained in:
Alex Szpakowski
2014-07-21 15:12:01 -03:00
parent 014b9a46e5
commit d52bab4221
30 changed files with 59 additions and 87 deletions
-5
View File
@@ -27,11 +27,6 @@ namespace love
namespace keyboard
{
Keyboard::Keyboard()
{
moduleType = M_KEYBOARD;
}
bool Keyboard::getConstant(const char *in, Keyboard::Key &out)
{
return keys.find(in, out);
+3 -1
View File
@@ -244,9 +244,11 @@ public:
KEY_MAX_ENUM = 512
};
Keyboard();
virtual ~Keyboard() {}
// Implements Module.
virtual ModuleType getModuleType() const { return M_KEYBOARD; }
/**
* Sets whether repeat keypress events should be sent if a key is held down.
* Does not affect text input events.