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

DefaultEventManager Class Reference

#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 shouldReturnToLauncher () const override
virtual void resetReturnToLauncher () override
Common::KeymappergetKeymapper () override
Common::KeymapgetGlobalKeymap () override

Private Member Functions

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

Private Attributes

Common::VirtualMouse_virtualMouse
Common::Keymapper_keymapper
Common::ArtificialEventSource _artificialEventSource
Common::Queue< Common::Event_eventQueue
Common::Point _mousePos
int _buttonState
int _modifierState
bool _shouldQuit
bool _shouldReturnToLauncher
bool _confirmExitDialogActive

Detailed Description

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


Constructor & Destructor Documentation

DefaultEventManager::DefaultEventManager ( Common::EventSource boss  ) 

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

DefaultEventManager::~DefaultEventManager (  ) 

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


Member Function Documentation

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

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

Common::Keymap * DefaultEventManager::getGlobalKeymap (  )  [override]

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

Common::Keymapper* DefaultEventManager::getKeymapper (  )  [inline, override]

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

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

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

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

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

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

Definition at line 72 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 50 of file default-events.h.

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

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

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

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

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

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

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

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

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

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

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

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


Member Data Documentation

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

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

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

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

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

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

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


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


Generated on Sat Aug 8 2020 05:02:43 for ResidualVM by doxygen 1.7.1
curved edge   curved edge