openMSX
EventListener.hh
Go to the documentation of this file.
1 #ifndef EVENTLISTENER_HH
2 #define EVENTLISTENER_HH
3 
4 #include <memory>
5 
6 namespace openmsx {
7 
8 class Event;
9 
11 {
12 public:
22  virtual int signalEvent(const std::shared_ptr<const Event>& event) = 0;
23 
24 protected:
27 };
28 
29 } // namespace openmsx
30 
31 #endif // EVENTLISTENER_HH
virtual int signalEvent(const std::shared_ptr< const Event > &event)=0
This method gets called when an event you are subscribed to occurs.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5