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:
15
18 virtual void signalMSXEvent(const Event& event,
19 EmuTime::param time) noexcept = 0;
20
21protected:
22 MSXEventListener() = default;
23 ~MSXEventListener() = default;
24};
25
26} // namespace openmsx
27
28#endif
MSXEventListener(const MSXEventListener &)=delete
MSXEventListener & operator=(const 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:9
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, ImGuiDelayedActionEvent, ImGuiActiveEvent > Event
Definition: Event.hh:450