openMSX
EventListener.hh
Go to the documentation of this file.
1#ifndef EVENTLISTENER_HH
2#define EVENTLISTENER_HH
3
4#include "Event.hh"
5
6namespace openmsx {
7
9{
10public:
11 EventListener(const EventListener&) = delete;
15
21 virtual bool signalEvent(const Event& event) = 0;
22
23protected:
24 EventListener() = default;
25 ~EventListener() = default;
26};
27
28} // namespace openmsx
29
30#endif // EVENTLISTENER_HH
virtual bool signalEvent(const Event &event)=0
This method gets called when an event you are subscribed to occurs.
EventListener(const EventListener &)=delete
EventListener & operator=(EventListener &&)=delete
EventListener & operator=(const EventListener &)=delete
EventListener(EventListener &&)=delete
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