openMSX
|
#include <UnicodeKeymap.hh>
Classes | |
struct | KeyInfo |
Public Member Functions | |
UnicodeKeymap (std::string_view keyboardType) | |
KeyInfo | get (unsigned unicode) const |
KeyInfo | getDeadKey (unsigned n) const |
uint8_t | getRelevantMods (const KeyInfo &keyInfo) const |
Returns a mask in which a bit is set iff the corresponding modifier is relevant for the given key. | |
const MsxChar2Unicode & | getMsxChars () const |
Definition at line 101 of file UnicodeKeymap.hh.
|
explicit |
Definition at line 86 of file UnicodeKeymap.cc.
References openmsx::File::mmap(), openmsx::FileContext::resolve(), openmsx::systemFileContext(), and tmpStrCat().
UnicodeKeymap::KeyInfo openmsx::UnicodeKeymap::get | ( | unsigned | unicode | ) | const |
Definition at line 106 of file UnicodeKeymap.cc.
References binary_find().
UnicodeKeymap::KeyInfo openmsx::UnicodeKeymap::getDeadKey | ( | unsigned | n | ) | const |
Definition at line 112 of file UnicodeKeymap.cc.
|
inline |
Definition at line 141 of file UnicodeKeymap.hh.
Referenced by openmsx::Keyboard::getMsxChar2Unicode().
|
inline |
Returns a mask in which a bit is set iff the corresponding modifier is relevant for the given key.
A modifier is considered relevant if there is at least one mapping entry for the key that requires the modifier to be active. Must only be called on valid KeyInfos.
Definition at line 137 of file UnicodeKeymap.hh.
References openmsx::KeyMatrixPosition::getRowCol(), and openmsx::UnicodeKeymap::KeyInfo::pos.