ScummVM API documentation
Events and Time

Description

Functions

virtual uint32 OSystem::getMillis (bool skipRecord=false)=0
 
virtual void OSystem::delayMillis (uint msecs)=0
 
virtual void OSystem::getTimeAndDate (TimeDate &t) const =0
 
virtual Common::TimerManager * OSystem::getTimerManager ()
 
Common::EventManager * OSystem::getEventManager ()
 
virtual Common::HardwareInputSet * OSystem::getHardwareInputSet ()
 
virtual Common::KeymapArray OSystem::getGlobalKeymaps ()
 
virtual Common::KeymapperDefaultBindings * OSystem::getKeymapperDefaultBindings ()
 

Function Documentation

◆ getMillis()

virtual uint32 OSystem::getMillis ( bool  skipRecord = false)
pure virtual

Get the number of milliseconds since the program was started.

Parameters
skipRecordSkip recording of this value by the event recorder. This might be needed particularly when we are in an on-screen GUI loop where the player can pause the recording.

◆ delayMillis()

virtual void OSystem::delayMillis ( uint  msecs)
pure virtual

Delay/sleep for the specified amount of milliseconds.

◆ getTimeAndDate()

virtual void OSystem::getTimeAndDate ( TimeDate t) const
pure virtual

Get the current time and date, in the local timezone.

On many systems, this corresponds to the combination of time() and localtime().

◆ getTimerManager()

virtual Common::TimerManager* OSystem::getTimerManager ( )
virtual

Return the timer manager singleton.

For more information, see TimerManager.

◆ getEventManager()

Common::EventManager* OSystem::getEventManager ( )
inline

Return the event manager singleton.

For more information, see EventManager.

◆ getHardwareInputSet()

virtual Common::HardwareInputSet* OSystem::getHardwareInputSet ( )
inlinevirtual

Register hardware inputs with keymapper.

Returns
HardwareInputSet with all keys and recommended mappings.

For more information, see keymapper.

◆ getGlobalKeymaps()

virtual Common::KeymapArray OSystem::getGlobalKeymaps ( )
inlinevirtual

Return a platform-specific global keymap.

Returns
Keymap with actions appropriate for the platform.

The caller will use and delete the return object.

For more information, see keymapper.

◆ getKeymapperDefaultBindings()

virtual Common::KeymapperDefaultBindings* OSystem::getKeymapperDefaultBindings ( )
inlinevirtual

Return platform-specific default keybindings.

Returns
KeymapperDefaultBindings populated with keybindings.

For more information, see keymapper.