ScummVM API documentation
Common::InputWatcher Class Reference

#include <input-watcher.h>

Inheritance diagram for Common::InputWatcher:
Common::EventObserver

Public Member Functions

 InputWatcher (EventDispatcher *eventDispatcher, Keymapper *keymapper)
 
void startWatching ()
 
void stopWatching ()
 
bool isWatching () const
 
HardwareInput checkForCapturedInput ()
 

Detailed Description

Watches events for inputs that can be bound to actions

When the watch mode is enabled, the watcher disables the Keymapper and sets itself as an event observer. Once an event corresponding to a hardware input is received, it is saved for later retrieval.

Used by the remap dialog to capture input.


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