diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/samsungtv/samsungtv.cpp | 9 | ||||
-rw-r--r-- | backends/platform/samsungtv/samsungtv.h | 14 |
2 files changed, 17 insertions, 6 deletions
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp index bf6e20adae..34ddbd2f10 100644 --- a/backends/platform/samsungtv/samsungtv.cpp +++ b/backends/platform/samsungtv/samsungtv.cpp @@ -24,6 +24,7 @@ */ #include "backends/platform/samsungtv/samsungtv.h" +#include "backends/events/samsungtvsdl/samsungtvsdl-events.h" OSystem_SDL_SamsungTV::OSystem_SDL_SamsungTV() : @@ -36,6 +37,14 @@ bool OSystem_SDL_SamsungTV::hasFeature(Feature f) { (f == OSystem::kFeatureCursorHasPalette); } +void OSystem_SDL_SamsungTV::initBackend() { + if (_eventManager == 0) + _eventManager = new SamsungTVSdlEventManager(this); + + // Call parent implementation of this method + OSystem_SDL::initBackend(); +} + void OSystem_SDL_SamsungTV::setFeatureState(Feature f, bool enable) { switch (f) { case OSystem::kFeatureAspectRatioCorrection: diff --git a/backends/platform/samsungtv/samsungtv.h b/backends/platform/samsungtv/samsungtv.h index 0c3e49ac63..49460a9ddc 100644 --- a/backends/platform/samsungtv/samsungtv.h +++ b/backends/platform/samsungtv/samsungtv.h @@ -23,8 +23,8 @@ * */ -#ifndef SDL_SAMSUNGTV_COMMON_H -#define SDL_SAMSUNGTV_COMMON_H +#ifndef PLATFORM_SDL_SAMSUNGTV_H +#define PLATFORM_SDL_SAMSUNGTV_H #include "backends/platform/sdl/posix/posix.h" @@ -32,11 +32,13 @@ class OSystem_SDL_SamsungTV : public OSystem_POSIX { public: OSystem_SDL_SamsungTV(); - bool hasFeature(Feature f); - void setFeatureState(Feature f, bool enable); - bool getFeatureState(Feature f); + virtual void initBackend(); - void quit(); + virtual bool hasFeature(Feature f); + virtual void setFeatureState(Feature f, bool enable); + virtual bool getFeatureState(Feature f); + + virtual void quit(); }; #endif |