aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/samsungtv
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-29 05:00:44 +0000
committerAlejandro Marzini2010-06-29 05:00:44 +0000
commitafd2a2c01d4bf3686a54c631d1cd4228ba1d710c (patch)
tree05beeedc7832e57382a1e2b2c51dcc86a58bf42a /backends/platform/samsungtv
parentcd5546f1d16c9efe471206846ddfdcd3b81f4f63 (diff)
downloadscummvm-rg350-afd2a2c01d4bf3686a54c631d1cd4228ba1d710c.tar.gz
scummvm-rg350-afd2a2c01d4bf3686a54c631d1cd4228ba1d710c.tar.bz2
scummvm-rg350-afd2a2c01d4bf3686a54c631d1cd4228ba1d710c.zip
Renamed Samsung TV SDL Event Manager class and file for constancy, and added initialization for it on Samsung TV backend.
svn-id: r50481
Diffstat (limited to 'backends/platform/samsungtv')
-rw-r--r--backends/platform/samsungtv/samsungtv.cpp9
-rw-r--r--backends/platform/samsungtv/samsungtv.h14
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