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

Common::KeyboardRepeatEventSourceWrapper Class Reference

Inheritance diagram for Common::KeyboardRepeatEventSourceWrapper:
Collaboration diagram for Common::KeyboardRepeatEventSourceWrapper:

List of all members.

Public Member Functions

 KeyboardRepeatEventSourceWrapper (Common::EventSource *delegate)
bool pollEvent (Common::Event &event) override
 Queries a event from the source.
bool allowMapping () const override
 Checks whether events from this source are allowed to be mapped.

Private Types

enum  { kKeyRepeatInitialDelay = 400, kKeyRepeatSustainDelay = 100 }

Private Attributes

Common::EventSource_delegate
Common::KeyState _currentKeyDown
uint32 _keyRepeatTime

Detailed Description

Definition at line 180 of file events.cpp.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
kKeyRepeatInitialDelay 
kKeyRepeatSustainDelay 

Definition at line 235 of file events.cpp.


Constructor & Destructor Documentation

Common::KeyboardRepeatEventSourceWrapper::KeyboardRepeatEventSourceWrapper ( Common::EventSource delegate  )  [inline]

Definition at line 182 of file events.cpp.


Member Function Documentation

bool Common::KeyboardRepeatEventSourceWrapper::allowMapping (  )  const [inline, 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 229 of file events.cpp.

bool Common::KeyboardRepeatEventSourceWrapper::pollEvent ( Common::Event event  )  [inline, 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 189 of file events.cpp.


Member Data Documentation


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


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