aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/input_handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/input_handler.cpp')
-rw-r--r--engines/titanic/input_handler.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/titanic/input_handler.cpp b/engines/titanic/input_handler.cpp
index 0c09429bd4..d5825c0c32 100644
--- a/engines/titanic/input_handler.cpp
+++ b/engines/titanic/input_handler.cpp
@@ -28,7 +28,7 @@ namespace Titanic {
CInputHandler::CInputHandler(CGameManager *owner) :
_gameManager(owner), _inputTranslator(nullptr),
_field4(0), _field8(0), _fieldC(0), _field10(0), _field14(0),
- _field18(0), _field1C(0), _field20(0), _field24(0) {
+ _lockCount(0), _field24(0) {
CScreenManager::_screenManagerPtr->_inputHandler = this;
}
@@ -36,4 +36,14 @@ void CInputHandler::setTranslator(CInputTranslator *translator) {
_inputTranslator = translator;
}
+void CInputHandler::incLockCount() {
+ ++_lockCount;
+}
+
+void CInputHandler::decLockCount() {
+ if (--_lockCount == 0 && _inputTranslator) {
+ warning("TODO");
+ }
+}
+
} // End of namespace Titanic z