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

#include <HotKey.hh>

Inheritance diagram for openmsx::HotKey:
Inheritance graph
Collaboration diagram for openmsx::HotKey:
Collaboration graph


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
const auto & getGlobalBindings () const
- Public Member Functions inherited from openmsx::RTSchedulable
 RTSchedulable (const RTSchedulable &)=delete
RTSchedulableoperator= (const RTSchedulable &)=delete
virtual void executeRT ()=0
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
virtual int signalEvent (const Event &event)=0
 This method gets called when an event you are subscribed to occurs. More...

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 23 of file HotKey.hh.

Member Typedef Documentation

◆ BindMap

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

Definition at line 37 of file HotKey.hh.

◆ KeySet

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

Definition at line 38 of file HotKey.hh.

Constructor & Destructor Documentation

◆ HotKey()

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

◆ ~HotKey()

openmsx::HotKey::~HotKey ( )

Member Function Documentation

◆ getGlobalBindings()

const auto & openmsx::HotKey::getGlobalBindings ( ) const

Definition at line 76 of file HotKey.hh.

Referenced by openmsx::getShortCutForCommand().

◆ 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 163 of file

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

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