openMSX
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
openmsx::UnicodeKeymap::KeyInfo Struct Reference

#include <UnicodeKeymap.hh>

Collaboration diagram for openmsx::UnicodeKeymap::KeyInfo:
Collaboration graph
[legend]

Public Types

enum class  Modifier {
  SHIFT , CTRL , GRAPH , CAPS ,
  CODE , NUM
}
 

Public Member Functions

constexpr KeyInfo ()=default
 
constexpr KeyInfo (KeyMatrixPosition pos_, uint8_t modMask_)
 
constexpr bool isValid () const
 

Public Attributes

KeyMatrixPosition pos
 
uint8_t modMask = 0
 

Static Public Attributes

static constexpr uint8_t SHIFT_MASK = 1 << to_underlying(Modifier::SHIFT)
 
static constexpr uint8_t CTRL_MASK = 1 << to_underlying(Modifier::CTRL)
 
static constexpr uint8_t GRAPH_MASK = 1 << to_underlying(Modifier::GRAPH)
 
static constexpr uint8_t CAPS_MASK = 1 << to_underlying(Modifier::CAPS)
 
static constexpr uint8_t CODE_MASK = 1 << to_underlying(Modifier::CODE)
 

Detailed Description

Definition at line 104 of file UnicodeKeymap.hh.

Member Enumeration Documentation

◆ Modifier

Enumerator
SHIFT 
CTRL 
GRAPH 
CAPS 
CODE 
NUM 

Definition at line 105 of file UnicodeKeymap.hh.

Constructor & Destructor Documentation

◆ KeyInfo() [1/2]

constexpr openmsx::UnicodeKeymap::KeyInfo::KeyInfo ( )
constexprdefault

◆ KeyInfo() [2/2]

constexpr openmsx::UnicodeKeymap::KeyInfo::KeyInfo ( KeyMatrixPosition  pos_,
uint8_t  modMask_ 
)
inlineconstexpr

Definition at line 114 of file UnicodeKeymap.hh.

References openmsx::KeyMatrixPosition::isValid(), and pos.

Member Function Documentation

◆ isValid()

constexpr bool openmsx::UnicodeKeymap::KeyInfo::isValid ( ) const
inlineconstexpr

Definition at line 119 of file UnicodeKeymap.hh.

References openmsx::KeyMatrixPosition::isValid(), and pos.

Member Data Documentation

◆ CAPS_MASK

constexpr uint8_t openmsx::UnicodeKeymap::KeyInfo::CAPS_MASK = 1 << to_underlying(Modifier::CAPS)
staticconstexpr

Definition at line 110 of file UnicodeKeymap.hh.

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

◆ CODE_MASK

constexpr uint8_t openmsx::UnicodeKeymap::KeyInfo::CODE_MASK = 1 << to_underlying(Modifier::CODE)
staticconstexpr

Definition at line 111 of file UnicodeKeymap.hh.

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

◆ CTRL_MASK

constexpr uint8_t openmsx::UnicodeKeymap::KeyInfo::CTRL_MASK = 1 << to_underlying(Modifier::CTRL)
staticconstexpr

Definition at line 108 of file UnicodeKeymap.hh.

◆ GRAPH_MASK

constexpr uint8_t openmsx::UnicodeKeymap::KeyInfo::GRAPH_MASK = 1 << to_underlying(Modifier::GRAPH)
staticconstexpr

Definition at line 109 of file UnicodeKeymap.hh.

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

◆ modMask

uint8_t openmsx::UnicodeKeymap::KeyInfo::modMask = 0

Definition at line 123 of file UnicodeKeymap.hh.

◆ pos

KeyMatrixPosition openmsx::UnicodeKeymap::KeyInfo::pos

Definition at line 122 of file UnicodeKeymap.hh.

Referenced by openmsx::UnicodeKeymap::getRelevantMods(), isValid(), and KeyInfo().

◆ SHIFT_MASK

constexpr uint8_t openmsx::UnicodeKeymap::KeyInfo::SHIFT_MASK = 1 << to_underlying(Modifier::SHIFT)
staticconstexpr

Definition at line 107 of file UnicodeKeymap.hh.


The documentation for this struct was generated from the following file: