aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Bénony2015-12-01 19:07:12 +0100
committerVincent Bénony2016-01-06 15:35:31 +0100
commit452968ec679909bc6a3fdab682d3ba91b245642c (patch)
treeb4f649d5b68bd5d952024982d41722c758b6dedc
parente82a46c2e3b169994a00404b287ce583c46c4291 (diff)
downloadscummvm-rg350-452968ec679909bc6a3fdab682d3ba91b245642c.tar.gz
scummvm-rg350-452968ec679909bc6a3fdab682d3ba91b245642c.tar.bz2
scummvm-rg350-452968ec679909bc6a3fdab682d3ba91b245642c.zip
IOS: Adds a getter for the touchpad mode
-rw-r--r--backends/platform/iphone/osys_main.cpp9
-rw-r--r--backends/platform/iphone/osys_main.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/backends/platform/iphone/osys_main.cpp b/backends/platform/iphone/osys_main.cpp
index 0ce21b44c1..968c7c56cb 100644
--- a/backends/platform/iphone/osys_main.cpp
+++ b/backends/platform/iphone/osys_main.cpp
@@ -83,6 +83,10 @@ OSystem_IPHONE::~OSystem_IPHONE() {
_mouseBuffer.free();
}
+bool OSystem_IPHONE::touchpadModeEnabled() const {
+ return _touchpadModeEnabled;
+}
+
int OSystem_IPHONE::timerHandler(int t) {
DefaultTimerManager *tm = (DefaultTimerManager *)g_system->getTimerManager();
tm->handler();
@@ -288,6 +292,11 @@ void OSystem_IPHONE::logMessage(LogMessageType::Type type, const char *message)
fflush(output);
}
+bool iphone_touchpadModeEnabled() {
+ OSystem_IPHONE *sys = (OSystem_IPHONE *) g_system;
+ return sys && sys->touchpadModeEnabled();
+}
+
void iphone_main(int argc, char *argv[]) {
//OSystem_IPHONE::migrateApp();
diff --git a/backends/platform/iphone/osys_main.h b/backends/platform/iphone/osys_main.h
index 0159eee1be..f308a83b05 100644
--- a/backends/platform/iphone/osys_main.h
+++ b/backends/platform/iphone/osys_main.h
@@ -131,6 +131,8 @@ public:
virtual int16 getHeight();
virtual int16 getWidth();
+ bool touchpadModeEnabled() const;
+
#ifdef USE_RGB_COLOR
virtual Graphics::PixelFormat getScreenFormat() const { return _framebuffer.format; }
virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;