blob: fcb7dd2c667a0f3fce861361025559eafd44c6e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <QtCore>
#include <lua.hpp>
#include "events/Event.hpp"
#include "keymap/KeymapEvaluator.hpp"
class ModeChangedEvent : public Event {
public:
const KeyMode mode;
ModeChangedEvent(KeyMode mode) : mode(std::move(mode)) { kind = "ModeChanged"; }
void lua_push(lua_State *state) const override {
Event::lua_push(state);
SET_FIELD("mode", string, mode.toStdString().c_str())
}
};
|