5#ifndef INCLUDE_FIFECHAN_KEYEVENT_HPP_
6#define INCLUDE_FIFECHAN_KEYEVENT_HPP_
10#include "fifechan/inputevent.hpp"
11#include "fifechan/key.hpp"
12#include "fifechan/platform.hpp"
27 enum class Type : std::uint8_t
51 bool isControlPressed,
72 bool isNumericPad()
const;
79 Key const & getKey()
const;
bool mIsNumericPad
True if the numeric pad was used, false otherwise.
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.
Represents a keyboard key or character code.