Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::GKeySym Class Reference

Symbolic key structure. More...

Public Member Functions

void deserialize (G3D::BinaryInput &b)
 
void serialize (G3D::BinaryOutput &b) const
 

Public Attributes

GKeyMod::Value mod
 Current key modifiers. More...
 
uint8 scancode
 Hardware specific scancode. More...
 
GKey::Value sym
 G3D virtual raw key code. More...
 
uint16 unicode
 Translated character. More...
 

Detailed Description

Symbolic key structure.

Member Function Documentation

◆ deserialize()

void G3D::GKeySym::deserialize ( G3D::BinaryInput b)
inline

◆ serialize()

void G3D::GKeySym::serialize ( G3D::BinaryOutput b) const
inline

Member Data Documentation

◆ mod

GKeyMod::Value G3D::GKeySym::mod

Current key modifiers.

Referenced by deserialize(), and serialize().

◆ scancode

uint8 G3D::GKeySym::scancode

Hardware specific scancode.

Should not be used by general applications. If no hardware scancode is available, it will be 0.

Referenced by deserialize(), and serialize().

◆ sym

GKey::Value G3D::GKeySym::sym

G3D virtual raw key code.

Referenced by deserialize(), and serialize().

◆ unicode

uint16 G3D::GKeySym::unicode

Translated character.

If non-zero, this is a UNICODE character corresponding to the keypress. If the high 9 bits of the character are 0, then this maps to the equivalent ASCII character:

   char ch;
   if ( (keysym.unicode & 0xFF80) == 0 ) {
       ch = keysym.unicode & 0x7F;
   } else {
       An international character..
   }
   

Referenced by deserialize(), and serialize().


documentation generated on Wed Nov 24 2021 08:01:56 using doxygen 1.8.15