aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/platform_osystem.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-27 19:35:20 +0200
committerEinar Johan Trøan Sømåen2012-07-27 19:35:20 +0200
commitc7fa8e7d1024e4447a7396b5099870d01b775746 (patch)
tree9fa68cf963e7be42015d5a15ef6fec2c716f8a5c /engines/wintermute/platform_osystem.cpp
parent99d4c55e88712a0b0dc0d97e4c9c52946a5f48f2 (diff)
downloadscummvm-rg350-c7fa8e7d1024e4447a7396b5099870d01b775746.tar.gz
scummvm-rg350-c7fa8e7d1024e4447a7396b5099870d01b775746.tar.bz2
scummvm-rg350-c7fa8e7d1024e4447a7396b5099870d01b775746.zip
WINTERMUTE: Move settings-files to save-dir (gzipped xml now)
Diffstat (limited to 'engines/wintermute/platform_osystem.cpp')
-rw-r--r--engines/wintermute/platform_osystem.cpp42
1 files changed, 8 insertions, 34 deletions
diff --git a/engines/wintermute/platform_osystem.cpp b/engines/wintermute/platform_osystem.cpp
index 32d53e3a50..b2a0b976d4 100644
--- a/engines/wintermute/platform_osystem.cpp
+++ b/engines/wintermute/platform_osystem.cpp
@@ -81,21 +81,7 @@ void BasePlatform::handleEvent(Common::Event *event) {
case Common::EVENT_WHEELDOWN:
if (_gameRef) _gameRef->handleMouseWheel(event->mouse.y);
break;
- /*#ifdef __IPHONEOS__
- {
- BaseRenderOSystem *renderer = static_cast<BaseRenderOSystem *>(_gameRef->_renderer);
- POINT p;
- GetCursorPos(&p);
- _gameRef->SetActiveObject(renderer->GetObjectAt(p.x, p.y));
-
- if (_gameRef->_activeObject != NULL && strcmp(_gameRef->_activeObject->getClassName(), "UIButton") == 0) {
- UIButton *btn = static_cast<UIButton *>(_gameRef->_activeObject);
- if (btn->_visible && !btn->_disable) btn->_press = true;
- }
- }
- #endif*/
-
-//TODO
+//TODO: Handle MouseWheel
/* case SDL_MOUSEWHEEL:
if (_gameRef) _gameRef->handleMouseWheel(event->wheel.y);
break;
@@ -114,10 +100,8 @@ void BasePlatform::handleEvent(Common::Event *event) {
break;
case SDL_WINDOWEVENT_FOCUS_LOST:
case SDL_WINDOWEVENT_MINIMIZED:
- #ifndef __IPHONEOS__
if (_gameRef) _gameRef->OnActivate(false, false);
SDL_ShowCursor(SDL_ENABLE);
- #endif
break;
case SDL_WINDOWEVENT_CLOSE:
@@ -128,15 +112,15 @@ void BasePlatform::handleEvent(Common::Event *event) {
*/
case Common::EVENT_QUIT:
case Common::EVENT_RTL:
-/*#ifdef __IPHONEOS__
- if (_gameRef) {
- _gameRef->AutoSaveOnExit();
- _gameRef->_quitting = true;
- }
-#else*/
+// Block kept in case we want to support autoSaveOnExit.
+//#ifdef __IPHONEOS__
+// if (_gameRef) {
+// _gameRef->AutoSaveOnExit();
+// _gameRef->_quitting = true;
+// }
+//#else*/
if (_gameRef) _gameRef->onWindowClose();
//#endif
-
break;
default:
// TODO: Do we care about any other events?
@@ -149,16 +133,6 @@ void BasePlatform::handleEvent(Common::Event *event) {
//////////////////////////////////////////////////////////////////////////
// Win32 API bindings
//////////////////////////////////////////////////////////////////////////
-void BasePlatform::outputDebugString(const char *lpOutputString) {
-/*
-#ifdef __WIN32__
- ::OutputDebugString(lpOutputString);
-#endif
-*/
-}
-
-
-//////////////////////////////////////////////////////////////////////////
bool BasePlatform::getCursorPos(Point32 *lpPoint) {
BaseRenderOSystem *renderer = static_cast<BaseRenderOSystem *>(_gameRef->_renderer);