summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-21 23:18:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-21 23:18:35 +0300
commitcf772fbdba567b293da80f285e67225631e18cd7 (patch)
tree6a9c265c8015b9d180a58c6a3dca0f3c63bc788c
parente8cc6c34f089ad3ee06931201a109931bb31fa1f (diff)
downloadmv-cf772fbdba567b293da80f285e67225631e18cd7.tar.gz
mv-cf772fbdba567b293da80f285e67225631e18cd7.tar.bz2
mv-cf772fbdba567b293da80f285e67225631e18cd7.tar.xz
mv-cf772fbdba567b293da80f285e67225631e18cd7.zip
In input events add support for chattab and args.
-rw-r--r--src/events/inputevent.h14
1 files changed, 13 insertions, 1 deletions
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<int> 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;
};