From 5700075b7a117ae9f1f8a752a58458d8a9d4c83a Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 13 Sep 2013 15:31:19 +0200 Subject: [PATCH] Added missing functions for checking type of keyboard event --- include/tool/tool_event.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/tool/tool_event.h b/include/tool/tool_event.h index 1033a2f51a..592624c321 100644 --- a/include/tool/tool_event.h +++ b/include/tool/tool_event.h @@ -229,6 +229,16 @@ public: return m_keyCode; } + bool IsKeyUp() const + { + return m_actions == TA_KeyUp; + } + + bool IsKeyDown() const + { + return m_actions == TA_KeyDown; + } + void Ignore(); void SetMouseDragOrigin( const VECTOR2D &aP )