From 47b1a06e3b42da767e5d46529e763cd5e710d263 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Thu, 21 Aug 2008 12:11:24 +0000 Subject: Removed unused code and structures, and a bit of cleanup. svn-id: r34080 --- engines/parallaction/input.h | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'engines/parallaction/input.h') 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; } -- cgit v1.2.3