aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/osys_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/iphone/osys_main.cpp')
-rw-r--r--backends/platform/iphone/osys_main.cpp9
1 files changed, 9 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();