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;
13
23 virtual int signalEvent(const Event& event) = 0;
24
25protected:
26 EventListener() = default;
27 ~EventListener() = default;
28};
29
30} // namespace openmsx
31
32#endif // EVENTLISTENER_HH
EventListener(const EventListener &)=delete
virtual int signalEvent(const Event &event)=0
This method gets called when an event you are subscribed to occurs.
EventListener & operator=(const EventListener &)=delete
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, Rs232NetEvent, ImGuiDelayedActionEvent, ImGuiActiveEvent > Event
Definition Event.hh:454