6#include "fifechan/events/keyevent.hpp"
12#include "fifechan/platform.hpp"
15#include "fifechan/events/inputevent.hpp"
16#include "fifechan/key.hpp"
35 assert(
"Type must be Pressed or Released" && (type == Type::Pressed || type == Type::Released));
Type getType() const
Gets the type of the event.
bool mIsNumericPad
True if the numeric pad was used, false otherwise.
Key const & getKey() const
Gets the key of the event.
bool isNumericPad() const
Checks if the key event occurred on the numeric pad.
KeyEvent(Widget *source, Widget *distributor, bool isShiftPressed, bool isControlPressed, bool isAltPressed, bool isMetaPressed, Type type, bool isNumericPad, Key const &key)
Constructor.
Type mType
Holds the type of the key event.
Key mKey
Holds the key of the key event.
Used replacement tokens by configure_file():