17 [[nodiscard]] uint64_t
getRealTime()
const {
return realtime; }
22 const uint64_t realtime;
31 [[nodiscard]] uint32_t
getUnicode()
const {
return unicode; }
38 [[nodiscard]]
TclObject toTclList()
const override;
39 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
42 const uint32_t unicode;
75 static constexpr
unsigned LEFT = 1;
76 static constexpr
unsigned MIDDLE = 2;
77 static constexpr
unsigned RIGHT = 3;
79 [[nodiscard]]
unsigned getButton()
const {
return button; }
87 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
88 const unsigned button;
109 [[nodiscard]]
int getX()
const {
return x; }
110 [[nodiscard]]
int getY()
const {
return y; }
114 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
123 [[nodiscard]]
int getX()
const {
return xrel; }
124 [[nodiscard]]
int getY()
const {
return yrel; }
125 [[nodiscard]]
int getAbsX()
const {
return xabs; }
126 [[nodiscard]]
int getAbsY()
const {
return yabs; }
130 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
148 const unsigned joystick;
154 [[nodiscard]]
unsigned getButton()
const {
return button; }
162 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
163 const unsigned button;
187 [[nodiscard]]
unsigned getAxis()
const {
return axis; }
188 [[nodiscard]]
int getValue()
const {
return value; }
192 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
201 [[nodiscard]]
unsigned getHat()
const {
return hat; }
202 [[nodiscard]]
unsigned getValue()
const {
return value; }
206 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
208 const unsigned value;
216 [[nodiscard]]
bool getGain()
const {
return gain; }
220 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
229 [[nodiscard]]
unsigned getX()
const {
return x; }
230 [[nodiscard]]
unsigned getY()
const {
return y; }
234 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
244 [[nodiscard]]
const std::string&
getFileName()
const {
return fileName; }
248 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
249 const std::string fileName;
259 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
272 [[nodiscard]]
unsigned getButton()
const {
return button; }
289 std::shared_ptr<const Event> origEvent);
294 [[nodiscard]]
bool equalImpl(
const Event& other)
const final;
295 const std::shared_ptr<const Event> origEvent;
296 const unsigned button;
303 const std::shared_ptr<const Event>& origEvent);
311 const std::shared_ptr<const Event>& origEvent);
323 [[nodiscard]]
bool equalImpl(
const Event& other)
const override;
324 [[nodiscard]]
bool matches(
const Event& other)
const override;
325 const std::vector<EventType> typesToMatch;
FileDropEvent(std::string fileName)
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
const std::string & getFileName() const
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
GroupEvent(EventType type, std::vector< EventType > typesToMatch, TclObject tclListComponents)
static constexpr unsigned X_AXIS
static constexpr unsigned Y_AXIS
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
JoystickAxisMotionEvent(unsigned joystick, unsigned axis, int value)
JoystickEvent(EventType type, unsigned joystick)
TclObject toTclHelper() const
unsigned getJoystick() const
unsigned getValue() const
JoystickHatEvent(unsigned joystick, unsigned hat, unsigned value)
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
KeyDownEvent(Keys::KeyCode keyCode_)
KeyDownEvent(Keys::KeyCode keyCode_, uint32_t unicode_)
KeyDownEvent(Keys::KeyCode keyCode_, Keys::KeyCode scanCode_, uint32_t unicode_)
KeyDownEvent(Keys::KeyCode keyCode_, Keys::KeyCode scanCode_)
Keys::KeyCode getKeyCode() const
Keys::KeyCode getScanCode() const
uint32_t getUnicode() const
KeyEvent(EventType type, Keys::KeyCode keyCode, Keys::KeyCode scanCode, uint32_t unicode)
KeyUpEvent(Keys::KeyCode keyCode_)
KeyUpEvent(Keys::KeyCode keyCode_, Keys::KeyCode scanCode_)
MouseMotionEvent(int xrel, int yrel, int xabs, int yabs)
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
MouseWheelEvent(int x, int y)
OSD events are triggered by other events.
TclObject toTclHelper(std::string_view direction) const
bool isRepeatStopper(const Event &other) const final
Get the event that actually triggered the creation of this event.
unsigned getButton() const
~OsdControlEvent()=default
OsdControlEvent(EventType type, unsigned button_, std::shared_ptr< const Event > origEvent)
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
OsdControlPressEvent(unsigned button, const std::shared_ptr< const Event > &origEvent)
OsdControlReleaseEvent(unsigned button, const std::shared_ptr< const Event > &origEvent)
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
ResizeEvent(unsigned x, unsigned y)
TclObject toTclList() const override
Similar to toString(), but retains the structure of the event.
uint64_t getRealTime() const
Query creation time.
TimedEvent(EventType type)
KeyCode
Constants that identify keys and key modifiers.
This file implemented 3 utility functions:
constexpr KeyMatrixPosition x
Keyboard bindings.