From cf772fbdba567b293da80f285e67225631e18cd7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Aug 2014 23:18:35 +0300 Subject: In input events add support for chattab and args. --- src/events/inputevent.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/events') diff --git a/src/events/inputevent.h b/src/events/inputevent.h index 2d8a36796..9707be94d 100644 --- a/src/events/inputevent.h +++ b/src/events/inputevent.h @@ -26,6 +26,8 @@ #include "localconsts.h" +class ChatTab; + typedef std::vector KeysVector; typedef KeysVector::iterator KeysVectorIter; typedef KeysVector::const_iterator KeysVectorCIter; @@ -42,12 +44,22 @@ typedef KeyTimeMap::iterator KeyTimeMapIter; struct InputEvent final { InputEvent(const int action0, const int mask0) : + args(), + tab(nullptr), action(action0), mask(mask0) { } - int action; + InputEvent(const std::string &args0, ChatTab *const tab0) : + args(args0), + tab(tab), + action(-1), + mask(0) + { } + std::string args; + ChatTab *tab; + int action; int mask; }; -- cgit v1.2.3-70-g09d2