aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/input.h10
-rw-r--r--engines/hdb/lua-script.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/hdb/input.h b/engines/hdb/input.h
index d12f33346a..ffd6c0d524 100644
--- a/engines/hdb/input.h
+++ b/engines/hdb/input.h
@@ -61,6 +61,16 @@ public:
return _mouseY;
}
+ void assignKey(int whichKey, Common::KeyCode keyPressed) {
+ switch (whichKey) {
+ case 0: _keyUp = keyPressed; return;
+ case 1: _keyDown = keyPressed; return;
+ case 2: _keyLeft = keyPressed; return;
+ case 3: _keyRight = keyPressed; return;
+ case 4: _keyUse = keyPressed; return;
+ }
+ }
+
private:
uint16 _buttons; // Flags for buttons
diff --git a/engines/hdb/lua-script.h b/engines/hdb/lua-script.h
index ff061afbc5..5124ac2638 100644
--- a/engines/hdb/lua-script.h
+++ b/engines/hdb/lua-script.h
@@ -80,6 +80,9 @@ public:
const char *getStringOffStack();
void setLuaGlobalValue(const char *name, int value);
+ bool isValid() {
+ return _systemInit;
+ }
private:
lua_State *_state;