openMSX
Classes | Public Member Functions | List of all members
openmsx::UnicodeKeymap Class Reference

#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 MsxChar2UnicodegetMsxChars () const
 

Detailed Description

Definition at line 101 of file UnicodeKeymap.hh.

Constructor & Destructor Documentation

◆ UnicodeKeymap()

openmsx::UnicodeKeymap::UnicodeKeymap ( std::string_view  keyboardType)
explicit

Member Function Documentation

◆ get()

UnicodeKeymap::KeyInfo openmsx::UnicodeKeymap::get ( unsigned  unicode) const

Definition at line 106 of file UnicodeKeymap.cc.

References binary_find().

◆ getDeadKey()

UnicodeKeymap::KeyInfo openmsx::UnicodeKeymap::getDeadKey ( unsigned  n) const

Definition at line 112 of file UnicodeKeymap.cc.

◆ getMsxChars()

const MsxChar2Unicode & openmsx::UnicodeKeymap::getMsxChars ( ) const
inline

Definition at line 141 of file UnicodeKeymap.hh.

Referenced by openmsx::Keyboard::getMsxChar2Unicode().

◆ getRelevantMods()

uint8_t openmsx::UnicodeKeymap::getRelevantMods ( const KeyInfo keyInfo) const
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.


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