diff options
Diffstat (limited to 'engines/illusions/bbdou/illusions_bbdou.cpp')
-rw-r--r-- | engines/illusions/bbdou/illusions_bbdou.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/illusions/bbdou/illusions_bbdou.cpp b/engines/illusions/bbdou/illusions_bbdou.cpp index 339b61d3f8..112aa3f1d0 100644 --- a/engines/illusions/bbdou/illusions_bbdou.cpp +++ b/engines/illusions/bbdou/illusions_bbdou.cpp @@ -216,6 +216,8 @@ Common::Error IllusionsEngine_BBDOU::run() { _updateFunctions = new UpdateFunctions(); _soundMan = new SoundMan(this); + initInput(); + initUpdateFunctions(); _fader = 0; @@ -283,6 +285,28 @@ bool IllusionsEngine_BBDOU::hasFeature(EngineFeature f) const { */ } +void IllusionsEngine_BBDOU::initInput() { + _input->setInputEvent(kEventLeftClick, 0x01) + .addMouseButton(MOUSE_LEFT_BUTTON) + .addKey(Common::KEYCODE_RETURN); + _input->setInputEvent(kEventRightClick, 0x02) + .addMouseButton(MOUSE_RIGHT_BUTTON); + _input->setInputEvent(kEventInventory, 0x04) + .addMouseButton(MOUSE_RIGHT_BUTTON) + .addKey(Common::KEYCODE_TAB); + _input->setInputEvent(kEventAbort, 0x08) + .addKey(Common::KEYCODE_ESCAPE); + _input->setInputEvent(kEventSkip, 0x10) + .addKey(Common::KEYCODE_SPACE); + _input->setInputEvent(kEventF1, 0x20) + .addKey(Common::KEYCODE_F1); + _input->setInputEvent(kEventUp, 0x40) + .addKey(Common::KEYCODE_UP); + _input->setInputEvent(kEventDown, 0x80) + .addMouseButton(MOUSE_RIGHT_BUTTON) + .addKey(Common::KEYCODE_DOWN); +} + #define UPDATEFUNCTION(priority, tag, callback) \ _updateFunctions->add(priority, tag, new Common::Functor1Mem<uint, int, IllusionsEngine_BBDOU> \ (this, &IllusionsEngine_BBDOU::callback)); |