openMSX
Classes | Public Types | Public Member Functions | List of all members
openmsx::HotKey Class Referencefinal

#include <HotKey.hh>

Inheritance diagram for openmsx::HotKey:
Inheritance graph
[legend]
Collaboration diagram for openmsx::HotKey:
Collaboration graph
[legend]

Classes

struct  HotKeyInfo
 

Public Types

using BindMap = std::vector< HotKeyInfo >
 
using KeySet = std::vector< Event >
 

Public Member Functions

 HotKey (RTScheduler &rtScheduler, GlobalCommandController &commandController, EventDistributor &eventDistributor)
 
 ~HotKey ()
 
void loadInit ()
 
void loadBind (std::string_view key, std::string_view cmd, bool repeat, bool event)
 
void loadUnbind (std::string_view key)
 
template<typename XmlStream >
void saveBindings (XmlStream &xml) const
 
- Public Member Functions inherited from openmsx::RTSchedulable
 RTSchedulable (const RTSchedulable &)=delete
 
RTSchedulableoperator= (const RTSchedulable &)=delete
 
void scheduleRT (uint64_t delta)
 
bool cancelRT ()
 
bool isPendingRT () const
 
- Public Member Functions inherited from openmsx::EventListener
 EventListener (const EventListener &)=delete
 
EventListeneroperator= (const EventListener &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::RTSchedulable
 RTSchedulable (RTScheduler &scheduler)
 
 ~RTSchedulable ()
 
- Protected Member Functions inherited from openmsx::EventListener
 EventListener ()=default
 
 ~EventListener ()=default
 

Detailed Description

Definition at line 20 of file HotKey.hh.

Member Typedef Documentation

◆ BindMap

using openmsx::HotKey::BindMap = std::vector<HotKeyInfo>

Definition at line 34 of file HotKey.hh.

◆ KeySet

using openmsx::HotKey::KeySet = std::vector<Event>

Definition at line 35 of file HotKey.hh.

Constructor & Destructor Documentation

◆ HotKey()

openmsx::HotKey::HotKey ( RTScheduler rtScheduler,
GlobalCommandController commandController,
EventDistributor eventDistributor 
)

◆ ~HotKey()

openmsx::HotKey::~HotKey ( )

Member Function Documentation

◆ loadBind()

void openmsx::HotKey::loadBind ( std::string_view  key,
std::string_view  cmd,
bool  repeat,
bool  event 
)

◆ loadInit()

void openmsx::HotKey::loadInit ( )

Definition at line 175 of file HotKey.cc.

Referenced by openmsx::SettingsConfig::loadSetting().

◆ loadUnbind()

void openmsx::HotKey::loadUnbind ( std::string_view  key)

◆ saveBindings()

template<typename XmlStream >
void openmsx::HotKey::saveBindings ( XmlStream &  xml) const
inline

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