mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Rework internal module registration to happen in constructors.
This commit is contained in:
@@ -533,9 +533,6 @@ public:
|
||||
|
||||
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.
|
||||
@@ -614,6 +611,10 @@ public:
|
||||
static bool getConstant(const char *in, ModifierKey &out);
|
||||
static bool getConstant(ModifierKey in, const char *&out);
|
||||
|
||||
protected:
|
||||
|
||||
Keyboard(const char *name);
|
||||
|
||||
private:
|
||||
|
||||
static StringMap<Key, KEY_MAX_ENUM>::Entry keyEntries[];
|
||||
|
||||
Reference in New Issue
Block a user