ScummVM API documentation
DM::EventManager Class Reference

Public Member Functions

 EventManager (DMEngine *vm)
 
void initMouse ()
 
void setMousePointerToNormal (int16 mousePointer)
 
void setPointerToObject (byte *bitmap)
 
void mouseDropChampionIcon ()
 
void buildpointerScreenArea (int16 mousePosX, int16 mousePosY)
 
void setMousePointer ()
 
void showMouse ()
 
void hideMouse ()
 
bool isMouseButtonDown (MouseButton button)
 
void setMousePos (Common::Point pos)
 
Common::Point getMousePos ()
 
Common::EventType processInput (Common::Event *grabKey=nullptr, Common::Event *grabMouseClick=nullptr)
 
void processPendingClick ()
 
void processClick (Common::Point mousePos, MouseButton button)
 
CommandType getCommandTypeFromMouseInput (MouseInput *input, Common::Point mousePos, MouseButton button)
 
void processCommandQueue ()
 
void commandSetLeader (ChampionIndex index)
 
void commandProcessType80ClickInDungeonViewTouchFrontWall ()
 
void commandProcessType80ClickInDungeonView (int16 posX, int16 posY)
 
void commandProcessCommands160To162ClickInResurrectReincarnatePanel (CommandType commandType)
 
void commandProcess81ClickInPanel (int16 x, int16 y)
 
void processType80_clickInDungeonView_grabLeaderHandObject (uint16 viewCell)
 
void clickInDungeonViewDropLeaderHandObject (uint16 viewCell)
 
bool hasPendingClick (Common::Point &point, MouseButton button)
 
void drawSleepScreen ()
 
void discardAllInput ()
 
void commandTakeStairs (bool stairsGoDown)
 
void commandProcessTypes12to27_clickInChampionStatusBox (uint16 champIndex, int16 posX, int16 posY)
 
void mouseProcessCommands125To128_clickOnChampionIcon (uint16 champIconIndex)
 
void commandProcessType100_clickInSpellArea (uint16 posX, uint16 posY)
 
void commandProcessTypes101To108_clickInSpellSymbolsArea (CommandType cmdType)
 
void commandProcessType111To115_ClickInActionArea (int16 posX, int16 posY)
 
void resetPressingEyeOrMouth ()
 
void waitForMouseOrKeyActivity ()
 
void commandHighlightBoxEnable (int16 x1, int16 x2, int16 y1, int16 y2)
 
void highlightBoxDisable ()
 
void highlightScreenBox (int16 x1, int16 x2, int16 y1, int16 y2)
 
void initArrays ()
 

Public Attributes

MouseInput_primaryMouseInput
 
MouseInput_secondaryMouseInput
 
bool _mousePointerBitmapUpdated
 
bool _refreshMousePointerInMainLoop
 
bool _highlightBoxEnabled
 
uint16 _useChampionIconOrdinalAsMousePointerBitmap
 
KeyboardInput_primaryKeyboardInput
 
KeyboardInput_secondaryKeyboardInput
 
bool _ignoreMouseMovements
 
int16 _hideMousePointerRequestCount
 
KeyboardInput _primaryKeyboardInputInterface [7]
 
KeyboardInput _secondaryKeyboardInputMovement [19]
 
KeyboardInput _primaryKeyboardInputPartySleeping [3]
 
KeyboardInput _primaryKeyboardInputFrozenGame [2]
 
MouseInput _primaryMouseInputEntrance [4]
 
MouseInput _primaryMouseInputRestartGame [2]
 
MouseInput _primaryMouseInputInterface [20]
 
MouseInput _secondaryMouseInputMovement [9]
 
MouseInput _secondaryMouseInputChampionInventory [38]
 
MouseInput _primaryMouseInputPartySleeping [3]
 
MouseInput _primaryMouseInputFrozenGame [3]
 
MouseInput _mouseInputActionAreaNames [5]
 
MouseInput _mouseInputActionAreaIcons [5]
 
MouseInput _mouseInputSpellArea [9]
 
MouseInput _mouseInputChampionNamesHands [13]
 
MouseInput _mouseInputPanelChest [9]
 
MouseInput _mouseInputPanelResurrectReincarnateCancel [4]
 
MouseInput _primaryMouseInputViewportDialog1Choice [2]
 
MouseInput _primaryMouseInputScreenDialog1Choice [2]
 
MouseInput _primaryMouseInputViewportDialog2Choices [3]
 
MouseInput _primaryMouseInputScreenDialog2Choices [3]
 
MouseInput _primaryMouseInputViewportDialog3Choices [4]
 
MouseInput _primaryMouseInputScreenDialog3Choices [4]
 
MouseInput _primaryMouseInputViewportDialog4Choices [5]
 
MouseInput _primaryMouseInputScreenDialog4Choices [5]
 
MouseInput_primaryMouseInputDialogSets [2][4]
 

Member Function Documentation

◆ processInput()

Common::EventType DM::EventManager::processInput ( Common::Event grabKey = nullptr,
Common::Event grabMouseClick = nullptr 
)

Upon encountering an event type for which the grab parameter is not null, the function will return with the event type, passes the event to the grab desitination and returns without processing the rest of the events into commands according to the current keyboard and mouse input. If there are no more events, it returns with Common::EVENT_INVALID.


The documentation for this class was generated from the following file: