diff options
author | Nicola Mettifogo | 2008-08-21 12:11:24 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-08-21 12:11:24 +0000 |
commit | 47b1a06e3b42da767e5d46529e763cd5e710d263 (patch) | |
tree | fb4d00d10918ac4b99bc2de5090add98c5cab6c5 /engines/parallaction/input.h | |
parent | 513f5ae150ad60bd899bae7ecae2435363e1d84d (diff) | |
download | scummvm-rg350-47b1a06e3b42da767e5d46529e763cd5e710d263.tar.gz scummvm-rg350-47b1a06e3b42da767e5d46529e763cd5e710d263.tar.bz2 scummvm-rg350-47b1a06e3b42da767e5d46529e763cd5e710d263.zip |
Removed unused code and structures, and a bit of cleanup.
svn-id: r34080
Diffstat (limited to 'engines/parallaction/input.h')
-rw-r--r-- | engines/parallaction/input.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/engines/parallaction/input.h b/engines/parallaction/input.h index c1e912db74..0d0194cdc7 100644 --- a/engines/parallaction/input.h +++ b/engines/parallaction/input.h @@ -41,14 +41,6 @@ enum { kMouseRightDown = 8 }; -struct InputData { - uint16 _event; - Common::Point _mousePos; - int16 _inventoryIndex; - ZonePtr _zone; - uint _label; -}; - enum MouseTriState { MOUSE_ENABLED_SHOW, MOUSE_ENABLED_HIDE, @@ -56,10 +48,7 @@ enum MouseTriState { }; class Input { - void updateGameInput(); - - // input-only - InputData _inputData; + int updateGameInput(); bool _hasKeyPressEvent; Common::KeyState _keyPressed; @@ -69,7 +58,7 @@ class Input { int16 _transCurrentHoverItem; - InputData *translateInput(); + void translateInput(); bool translateGameInput(); bool updateInventoryInput(); void takeAction(ZonePtr z); @@ -91,7 +80,7 @@ public: kInputModeComment = 1, kInputModeDialogue = 2, kInputModeInventory = 3, - kInputModeMenu = 4 + kInputModeMenu = 4, }; @@ -116,7 +105,7 @@ public: InventoryItem _activeItem; void readInput(); - InputData* updateInput(); + int updateInput(); void trackMouse(ZonePtr z); void waitForButtonEvent(uint32 buttonEventMask, int32 timeout = -1); uint32 getLastButtonEvent() { return _mouseButtons; } |