ScummVM API documentation
Illusions::Input Class Reference

Public Member Functions

void processEvent (Common::Event event)
 
bool pollEvent (uint evt)
 
bool hasNewEvents ()
 
void discardEvent (uint evt)
 
void discardAllEvents ()
 
bool pollButton (uint bitMask)
 
void activateButton (uint bitMask)
 
void deactivateButton (uint bitMask)
 
Common::Point getCursorPosition ()
 
void setCursorPosition (Common::Point mousePos)
 
Common::Point getCursorDelta ()
 
InputEventsetInputEvent (uint evt, uint bitMask)
 
bool isCursorMovedByKeyboard () const
 
bool isCheatModeActive ()
 
void setCheatModeActive (bool active)
 

Protected Member Functions

void handleAction (Common::CustomEventType Action, int mouseButton, bool down)
 
void handleKey (Common::KeyCode key, int mouseButton, bool down)
 
void handleMouseButton (int mouseButton, bool down)
 
void discardButtons (uint bitMask)
 
bool lookButtonStates (uint bitMask)
 
bool lookNewButtons (uint bitMask)
 
void setButtonState (uint bitMask)
 
void moveCursorByKeyboard (int deltaX, int deltaY)
 

Protected Attributes

uint _cheatCodeIndex
 
uint _buttonStates
 
uint _newButtons
 
uint _buttonsDown
 
uint _enabledButtons
 
uint _newKeys
 
Common::Point _cursorPos
 
Common::Point _prevCursorPos
 
InputEvent _inputEvents [kEventMax]
 
bool _cursorMovedByKeyboard
 

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