Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.
 
uint8 scancode
 Hardware specific scancode.
 
GKey::Value sym
 G3D virtual raw key code.
 
uint16 unicode
 Translated character.
 

Detailed Description

Symbolic key structure.

Member Function Documentation

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

Member Data Documentation

GKeyMod::Value G3D::GKeySym::mod

Current key modifiers.

Referenced by deserialize(), and serialize().

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().

GKey::Value G3D::GKeySym::sym

G3D virtual raw key code.

Referenced by deserialize(), and serialize().

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 Sat Jan 12 2013 22:49:55 using doxygen 1.8.2