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

Common::DelayedEventSource Class Reference

#include <keymapper.h>

Inheritance diagram for Common::DelayedEventSource:
Collaboration diagram for Common::DelayedEventSource:

List of all members.

Classes

struct  DelayedEventsEntry

Public Member Functions

bool pollEvent (Event &event) override
 Queries a event from the source.
bool allowMapping () const override
 Checks whether events from this source are allowed to be mapped.
void scheduleEvent (const Event &ev, uint32 delayMillis)
 Schedule an event to be produced after the specified delay.

Private Attributes

Queue< DelayedEventsEntry_delayedEvents
uint32 _delayedEffectiveTime

Detailed Description

Definition at line 184 of file keymapper.h.


Member Function Documentation

bool Common::DelayedEventSource::allowMapping (  )  const [override, 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 from Common::EventSource.

Definition at line 451 of file keymapper.cpp.

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

Queries a event from the source.

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

Implements Common::EventSource.

Definition at line 431 of file keymapper.cpp.

void Common::DelayedEventSource::scheduleEvent ( const Event ev,
uint32  delayMillis 
)

Schedule an event to be produced after the specified delay.

Definition at line 422 of file keymapper.cpp.


Member Data Documentation


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


Generated on Sat Sep 26 2020 05:03:04 for ResidualVM by doxygen 1.7.1
curved edge   curved edge