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
 
byte getRelevantMods (const KeyInfo &keyInfo) const
 Returns a mask in which a bit is set iff the corresponding modifier is relevant for the given key. More...
 

Detailed Description

Definition at line 96 of file UnicodeKeymap.hh.

Constructor & Destructor Documentation

◆ UnicodeKeymap()

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

Definition at line 89 of file UnicodeKeymap.cc.

Member Function Documentation

◆ get()

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

Definition at line 103 of file UnicodeKeymap.cc.

◆ getDeadkey()

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

Definition at line 110 of file UnicodeKeymap.cc.

◆ getRelevantMods()

byte 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 132 of file UnicodeKeymap.hh.

References openmsx::KeyMatrixPosition::getRowCol(), and openmsx::UnicodeKeymap::KeyInfo::pos.


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