aboutsummaryrefslogtreecommitdiff
path: root/backends/base-backend.h
diff options
context:
space:
mode:
authorMax Horn2011-06-08 14:29:22 +0200
committerMax Horn2011-06-08 14:29:22 +0200
commitfce7f90a94165158ea93d5969d795ad5a565847c (patch)
tree7599877ec230f7d1b8af0b17846835a950d29410 /backends/base-backend.h
parentd670b4bb561bdb935c6e574df2ed1ac478375878 (diff)
downloadscummvm-rg350-fce7f90a94165158ea93d5969d795ad5a565847c.tar.gz
scummvm-rg350-fce7f90a94165158ea93d5969d795ad5a565847c.tar.bz2
scummvm-rg350-fce7f90a94165158ea93d5969d795ad5a565847c.zip
BACKENDS: Shuffle backends class hierarchy and module initialization
Diffstat (limited to 'backends/base-backend.h')
-rw-r--r--backends/base-backend.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/base-backend.h b/backends/base-backend.h
index b0dddf93bf..c797e831a8 100644
--- a/backends/base-backend.h
+++ b/backends/base-backend.h
@@ -26,7 +26,9 @@
#include "common/system.h"
#include "common/events.h"
-class BaseBackend : public OSystem, Common::EventSource {
+class BaseBackend : public OSystem {
+protected:
+ virtual Common::EventSource *getDefaultEventSource() = 0;
public:
virtual void initBackend();
@@ -34,5 +36,11 @@ public:
virtual void fillScreen(uint32 col);
};
+class EventsBaseBackend : public BaseBackend, Common::EventSource {
+protected:
+ virtual Common::EventSource *getDefaultEventSource() { return this; }
+public:
+};
+
#endif