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
+12
View File
@@ -235,6 +235,18 @@ public:
virtual ~Keyboard() {}
/**
* Sets whether repeat keypress events should be sent if a key is held down.
* Does not affect text input events.
* @param enable Whether to send repeat key press events.
**/
virtual void setKeyRepeat(bool enable) = 0;
/**
* Gets whether repeat keypress events will be sent if a key is held down.
**/
virtual bool hasKeyRepeat() const = 0;
/**
* Checks whether a certain key is down or not.
* @param key A key identifier.