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

Common::EventSource Class Reference

A source of Events. More...

#include <events.h>

Inheritance diagram for Common::EventSource:

List of all members.

Public Member Functions

virtual ~EventSource ()
virtual bool pollEvent (Event &event)=0
 Queries a event from the source.
virtual bool allowMapping () const
 Checks whether events from this source are allowed to be mapped.

Detailed Description

A source of Events.

An example for this is OSystem, it provides events created by the system and or user.

Definition at line 258 of file events.h.

Constructor & Destructor Documentation

Common::EventSource::~EventSource (  )  [virtual]

Definition at line 45 of file events.cpp.

Member Function Documentation

virtual bool Common::EventSource::allowMapping (  )  const [inline, virtual]

Checks whether events from this source are allowed to be mapped.

Possible event sources not allowing mapping are: the event recorder/player and/or the EventManager, which allows user events to be pushed.

By default we allow mapping for every event source.

Reimplemented in Common::DelayedEventSource, Common::KeyboardRepeatEventSourceWrapper, and Common::ArtificialEventSource.

Definition at line 278 of file events.h.

virtual bool Common::EventSource::pollEvent ( Event event  )  [pure virtual]

Queries a event from the source.

event a reference to the event struct, where the event should be stored.
true if an event was polled, false otherwise.

Implemented in Cloud::CloudManager, ResVmSdlEventSource, SdlEventSource, Common::DelayedEventSource, Common::KeyboardRepeatEventSourceWrapper, Common::ArtificialEventSource, and Common::OSDMessageQueue.

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

Generated on Sat Sep 19 2020 05:04:43 for ResidualVM by doxygen 1.7.1
curved edge   curved edge