diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-21 23:18:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-21 23:18:35 +0300 |
commit | cf772fbdba567b293da80f285e67225631e18cd7 (patch) | |
tree | 6a9c265c8015b9d180a58c6a3dca0f3c63bc788c /src | |
parent | e8cc6c34f089ad3ee06931201a109931bb31fa1f (diff) | |
download | mv-cf772fbdba567b293da80f285e67225631e18cd7.tar.gz mv-cf772fbdba567b293da80f285e67225631e18cd7.tar.bz2 mv-cf772fbdba567b293da80f285e67225631e18cd7.tar.xz mv-cf772fbdba567b293da80f285e67225631e18cd7.zip |
In input events add support for chattab and args.
Diffstat (limited to 'src')
-rw-r--r-- | src/events/inputevent.h | 14 |
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; }; |