aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting/control.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/scripting/control.h')
-rw-r--r--engines/zvision/scripting/control.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/engines/zvision/scripting/control.h b/engines/zvision/scripting/control.h
index 93ad5f5df1..6ec47c6455 100644
--- a/engines/zvision/scripting/control.h
+++ b/engines/zvision/scripting/control.h
@@ -39,14 +39,33 @@ class ZVision;
class Control {
public:
+
+ enum ControlType {
+ CONTROL_UNKNOW,
+ CONTROL_INPUT,
+ CONTROL_PUSHTGL,
+ CONTROL_SLOT,
+ CONTROL_LEVER,
+ CONTROL_SAVE,
+ CONTROL_SAFE,
+ CONTROL_FIST,
+ CONTROL_TITLER,
+ CONTROL_HOTMOV,
+ CONTROL_PAINT
+ };
+
Control() : _engine(0), _key(0) {}
- Control(ZVision *engine, uint32 key) : _engine(engine), _key(key) {}
+ Control(ZVision *engine, uint32 key, ControlType type) : _engine(engine), _key(key), _type(type) {}
virtual ~Control() {}
uint32 getKey() {
return _key;
}
+ ControlType getType() {
+ return _type;
+ }
+
virtual void focus() {}
virtual void unfocus() {}
/**
@@ -109,6 +128,8 @@ public:
static void parseFlatControl(ZVision *engine);
static void parsePanoramaControl(ZVision *engine, Common::SeekableReadStream &stream);
static void parseTiltControl(ZVision *engine, Common::SeekableReadStream &stream);
+private:
+ ControlType _type;
};
// TODO: Implement InputControl