openMSX
|
#include <HotKey.hh>
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 |
![]() | |
RTSchedulable (const RTSchedulable &)=delete | |
RTSchedulable & | operator= (const RTSchedulable &)=delete |
virtual void | executeRT ()=0 |
void | scheduleRT (uint64_t delta) |
bool | cancelRT () |
bool | isPendingRT () const |
![]() | |
EventListener (const EventListener &)=delete | |
EventListener & | operator= (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 | |
![]() | |
RTSchedulable (RTScheduler &scheduler) | |
~RTSchedulable () | |
![]() | |
EventListener ()=default | |
~EventListener ()=default | |
using openmsx::HotKey::BindMap = std::vector<HotKeyInfo> |
using openmsx::HotKey::KeySet = std::vector<Event> |
openmsx::HotKey::HotKey | ( | RTScheduler & | rtScheduler, |
GlobalCommandController & | commandController, | ||
EventDistributor & | eventDistributor | ||
) |
Definition at line 38 of file HotKey.cc.
References openmsx::FILE_DROP, openmsx::FOCUS, openmsx::EventDistributor::HOTKEY, openmsx::JOY_AXIS_MOTION, openmsx::JOY_BUTTON_DOWN, openmsx::JOY_BUTTON_UP, openmsx::JOY_HAT, openmsx::KEY_DOWN, openmsx::KEY_UP, openmsx::MOUSE_BUTTON_DOWN, openmsx::MOUSE_BUTTON_UP, openmsx::MOUSE_MOTION, openmsx::MOUSE_WHEEL, openmsx::OSD_CONTROL_PRESS, openmsx::OSD_CONTROL_RELEASE, and openmsx::EventDistributor::registerEventListener().
openmsx::HotKey::~HotKey | ( | ) |
Definition at line 83 of file HotKey.cc.
References openmsx::FILE_DROP, openmsx::FOCUS, openmsx::JOY_AXIS_MOTION, openmsx::JOY_BUTTON_DOWN, openmsx::JOY_BUTTON_UP, openmsx::JOY_HAT, openmsx::KEY_DOWN, openmsx::KEY_UP, openmsx::MOUSE_BUTTON_DOWN, openmsx::MOUSE_BUTTON_UP, openmsx::MOUSE_MOTION, openmsx::MOUSE_WHEEL, openmsx::OSD_CONTROL_PRESS, openmsx::OSD_CONTROL_RELEASE, and openmsx::EventDistributor::unregisterEventListener().
void openmsx::HotKey::loadBind | ( | std::string_view | key, |
std::string_view | cmd, | ||
bool | repeat, | ||
bool | event | ||
) |
Definition at line 184 of file HotKey.cc.
References openmsx::GlobalCommandController::getInterpreter(), and repeat().
Referenced by openmsx::SettingsConfig::loadSetting().
void openmsx::HotKey::loadInit | ( | ) |
Definition at line 176 of file HotKey.cc.
Referenced by openmsx::SettingsConfig::loadSetting().
void openmsx::HotKey::loadUnbind | ( | std::string_view | key | ) |
Definition at line 190 of file HotKey.cc.
References openmsx::GlobalCommandController::getInterpreter().
Referenced by openmsx::SettingsConfig::loadSetting().
|
inline |
Definition at line 47 of file HotKey.hh.
References openmsx::HotKey::HotKeyInfo::event, find_unguarded(), and openmsx::toString().