Added love.keyboard.setKeyRepeat and love.keyboard.hasKeyRepeat (resolves issue #717)

This commit is contained in:
Alex Szpakowski
2013-08-29 03:20:27 -03:00
parent deba2926ce
commit eb052d99e8
6 changed files with 60 additions and 1 deletions
+7
View File
@@ -42,12 +42,19 @@ class Keyboard : public love::keyboard::Keyboard
{
public:
Keyboard();
// Implements Module.
const char *getName() const;
void setKeyRepeat(bool enable);
bool hasKeyRepeat() const;
bool isDown(Key *keylist) const;
private:
bool key_repeat;
static std::map<Key, SDL_Keycode> createKeyMap();
static std::map<Key, SDL_Keycode> keys;