openMSX
MSXEventListener.hh
Go to the documentation of this file.
1#ifndef MSXEVENTLISTENER_HH
2#define MSXEVENTLISTENER_HH
3
4#include "EmuTime.hh"
5#include "Event.hh"
6#include <memory>
7
8namespace openmsx {
9
11{
12public:
17
20 virtual void signalMSXEvent(const Event& event,
21 EmuTime::param time) noexcept = 0;
22
23protected:
24 MSXEventListener() = default;
25 ~MSXEventListener() = default;
26};
27
28} // namespace openmsx
29
30#endif
MSXEventListener(MSXEventListener &&)=delete
MSXEventListener(const MSXEventListener &)=delete
MSXEventListener & operator=(const MSXEventListener &)=delete
MSXEventListener & operator=(MSXEventListener &&)=delete
virtual void signalMSXEvent(const Event &event, EmuTime::param time) noexcept=0
This method gets called when an event you are subscribed to occurs.
This file implemented 3 utility functions:
Definition Autofire.cc:11
std::variant< KeyUpEvent, KeyDownEvent, MouseMotionEvent, MouseButtonUpEvent, MouseButtonDownEvent, MouseWheelEvent, JoystickAxisMotionEvent, JoystickHatEvent, JoystickButtonUpEvent, JoystickButtonDownEvent, OsdControlReleaseEvent, OsdControlPressEvent, WindowEvent, TextEvent, FileDropEvent, QuitEvent, FinishFrameEvent, CliCommandEvent, GroupEvent, BootEvent, FrameDrawnEvent, BreakEvent, SwitchRendererEvent, TakeReverseSnapshotEvent, AfterTimedEvent, MachineLoadedEvent, MachineActivatedEvent, MachineDeactivatedEvent, MidiInReaderEvent, MidiInWindowsEvent, MidiInCoreMidiEvent, MidiInCoreMidiVirtualEvent, MidiInALSAEvent, Rs232TesterEvent, Rs232NetEvent, ImGuiDelayedActionEvent, ImGuiActiveEvent > Event
Definition Event.hh:445