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  Modifier {
  SHIFT, CTRL, GRAPH, CAPS,
  CODE, NUM_MODIFIERS
}
 

Public Member Functions

 KeyInfo ()=default
 
 KeyInfo (KeyMatrixPosition pos_, byte modmask_)
 
bool isValid () const
 

Public Attributes

KeyMatrixPosition pos
 
byte modmask = 0
 

Static Public Attributes

static constexpr byte SHIFT_MASK = 1 << SHIFT
 
static constexpr byte CTRL_MASK = 1 << CTRL
 
static constexpr byte GRAPH_MASK = 1 << GRAPH
 
static constexpr byte CAPS_MASK = 1 << CAPS
 
static constexpr byte CODE_MASK = 1 << CODE
 

Detailed Description

Definition at line 99 of file UnicodeKeymap.hh.

Member Enumeration Documentation

◆ Modifier

Enumerator
SHIFT 
CTRL 
GRAPH 
CAPS 
CODE 
NUM_MODIFIERS 

Definition at line 100 of file UnicodeKeymap.hh.

Constructor & Destructor Documentation

◆ KeyInfo() [1/2]

openmsx::UnicodeKeymap::KeyInfo::KeyInfo ( )
default

◆ KeyInfo() [2/2]

openmsx::UnicodeKeymap::KeyInfo::KeyInfo ( KeyMatrixPosition  pos_,
byte  modmask_ 
)
inline

Definition at line 109 of file UnicodeKeymap.hh.

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

Member Function Documentation

◆ isValid()

bool openmsx::UnicodeKeymap::KeyInfo::isValid ( ) const
inline

Definition at line 114 of file UnicodeKeymap.hh.

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

Member Data Documentation

◆ CAPS_MASK

constexpr byte openmsx::UnicodeKeymap::KeyInfo::CAPS_MASK = 1 << CAPS
static

Definition at line 105 of file UnicodeKeymap.hh.

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

◆ CODE_MASK

constexpr byte openmsx::UnicodeKeymap::KeyInfo::CODE_MASK = 1 << CODE
static

Definition at line 106 of file UnicodeKeymap.hh.

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

◆ CTRL_MASK

constexpr byte openmsx::UnicodeKeymap::KeyInfo::CTRL_MASK = 1 << CTRL
static

Definition at line 103 of file UnicodeKeymap.hh.

◆ GRAPH_MASK

constexpr byte openmsx::UnicodeKeymap::KeyInfo::GRAPH_MASK = 1 << GRAPH
static

Definition at line 104 of file UnicodeKeymap.hh.

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

◆ modmask

byte openmsx::UnicodeKeymap::KeyInfo::modmask = 0

Definition at line 118 of file UnicodeKeymap.hh.

Referenced by KeyInfo().

◆ pos

KeyMatrixPosition openmsx::UnicodeKeymap::KeyInfo::pos

Definition at line 117 of file UnicodeKeymap.hh.

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

◆ SHIFT_MASK

constexpr byte openmsx::UnicodeKeymap::KeyInfo::SHIFT_MASK = 1 << SHIFT
static

Definition at line 102 of file UnicodeKeymap.hh.


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