diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-05 19:10:33 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-05 19:10:33 (GMT) |
| commit | 17e7ace364ad065bd587a74a6c042295e33f3209 (patch) | |
| tree | e003d940c0ca100e28e933fa2b5ba2a11d4e00c7 /src/interface/Textbox.h | |
| parent | 4ce22e4e7705224a9b4c1b9bfa8886de0029a3e3 (diff) | |
| download | powder-17e7ace364ad065bd587a74a6c042295e33f3209.zip powder-17e7ace364ad065bd587a74a6c042295e33f3209.tar.gz | |
Key repeat for text boxes
Diffstat (limited to 'src/interface/Textbox.h')
| -rw-r--r-- | src/interface/Textbox.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interface/Textbox.h b/src/interface/Textbox.h index 9f00139..d9695dd 100644 --- a/src/interface/Textbox.h +++ b/src/interface/Textbox.h @@ -44,16 +44,22 @@ public: //Determines if the given character is valid given the input type bool CharacterValid(Uint16 character); + virtual void Tick(float dt); virtual void OnContextMenuAction(int item); virtual void OnMouseClick(int x, int y, unsigned button); virtual void OnMouseUp(int x, int y, unsigned button); virtual void OnMouseMoved(int localx, int localy, int dx, int dy); virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); + virtual void OnVKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); + virtual void OnKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt); virtual void Draw(const Point& screenPos); protected: ValidInput inputType; size_t limit; + int repeatTime; + int keyDown; + Uint16 characterDown; bool mouseDown; bool masked, border; int cursor, cursorPositionX, cursorPositionY; |
