ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <default-events.h>

Inheritance diagram for DefaultEventManager:
Collaboration diagram for DefaultEventManager:

List of all members.

Public Member Functions

 DefaultEventManager (Common::EventSource *boss)
 ~DefaultEventManager ()
virtual void init () override
virtual bool pollEvent (Common::Event &event) override
virtual void pushEvent (const Common::Event &event) override
virtual void purgeMouseEvents () override
virtual Common::Point getMousePos () const override
virtual int getButtonState () const override
virtual int getModifierState () const override
virtual int shouldQuit () const override
virtual int shouldRTL () const override
virtual void resetRTL () override
void setGenerateKeyRepeatEvents (bool generateKeyRepeatEvents)
 Controls whether repeated key down events are generated while a key is pressed.

Private Types

enum  { kKeyRepeatInitialDelay = 400, kKeyRepeatSustainDelay = 100 }

Private Member Functions

bool notifyEvent (const Common::Event &ev) override
 Notifies the observer of an incoming event.
void handleKeyRepeat ()

Private Attributes

Common::ArtificialEventSource _artificialEventSource
Common::Queue< Common::Event_eventQueue
Common::Point _mousePos
int _buttonState
int _modifierState
bool _shouldQuit
bool _shouldRTL
bool _confirmExitDialogActive
bool _shouldGenerateKeyRepeatEvents
Common::KeyState _currentKeyDown
uint32 _keyRepeatTime

Detailed Description

Definition at line 39 of file default-events.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
kKeyRepeatInitialDelay 
kKeyRepeatSustainDelay 

Definition at line 65 of file default-events.h.


Constructor & Destructor Documentation

DefaultEventManager::DefaultEventManager ( Common::EventSource boss  ) 

Definition at line 38 of file default-events.cpp.

DefaultEventManager::~DefaultEventManager (  ) 

Definition at line 69 of file default-events.cpp.


Member Function Documentation

virtual int DefaultEventManager::getButtonState (  )  const [inline, override, virtual]

Definition at line 85 of file default-events.h.

virtual int DefaultEventManager::getModifierState (  )  const [inline, override, virtual]

Definition at line 86 of file default-events.h.

virtual Common::Point DefaultEventManager::getMousePos (  )  const [inline, override, virtual]

Definition at line 84 of file default-events.h.

void DefaultEventManager::handleKeyRepeat (  )  [private]

Definition at line 229 of file default-events.cpp.

void DefaultEventManager::init (  )  [override, virtual]

Definition at line 75 of file default-events.cpp.

bool DefaultEventManager::notifyEvent ( const Common::Event event  )  [inline, override, private, virtual]

Notifies the observer of an incoming event.

An observer is supposed to eat the event, with returning true, when it wants to prevent other observers from receiving the event. A usage example here is the keymapper: If it processes an Event, it should 'eat' it and create a new event, which the EventDispatcher will then catch.

Parameters:
event the event, which is incoming.
Returns:
true if the event should not be passed to other observers, false otherwise.

Implements Common::EventObserver.

Definition at line 52 of file default-events.h.

bool DefaultEventManager::pollEvent ( Common::Event event  )  [override, virtual]

Definition at line 87 of file default-events.cpp.

void DefaultEventManager::purgeMouseEvents (  )  [override, virtual]

Definition at line 277 of file default-events.cpp.

void DefaultEventManager::pushEvent ( const Common::Event event  )  [override, virtual]

Definition at line 268 of file default-events.cpp.

virtual void DefaultEventManager::resetRTL (  )  [inline, override, virtual]

Definition at line 89 of file default-events.h.

void DefaultEventManager::setGenerateKeyRepeatEvents ( bool  generateKeyRepeatEvents  )  [inline]

Controls whether repeated key down events are generated while a key is pressed.

Backends that generate their own keyboard repeat events should disable this.

Parameters:
generateKeyRepeatEvents 

Definition at line 107 of file default-events.h.

virtual int DefaultEventManager::shouldQuit (  )  const [inline, override, virtual]

Definition at line 87 of file default-events.h.

virtual int DefaultEventManager::shouldRTL (  )  const [inline, override, virtual]

Definition at line 88 of file default-events.h.


Member Data Documentation

Definition at line 58 of file default-events.h.

Definition at line 62 of file default-events.h.

Definition at line 72 of file default-events.h.

Definition at line 59 of file default-events.h.

Definition at line 57 of file default-events.h.

Definition at line 70 of file default-events.h.

Definition at line 60 of file default-events.h.

Definition at line 61 of file default-events.h.


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


Generated on Sat Sep 14 2019 05:03:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge