OpenGLPrakt --> events --> cEvent --> cKeyEvent
a cEvent with a payload (a key stroke)
public cKeyEvent ( const string & name = "cKeyEvent" , unsigned char key = 0 , int special = 0 , int modifiers = 0 ) ;
constructor w/ initialization
name | string which contains the event's name |
key | ASCII key (0 if special) |
special | special key if key==0 |
modifiers | active modifiers (CTRL etc.) |
public cKeyEvent ( unsigned char key = 0 , int special = 0 , int modifiers = 0 , const string & name = "cKeyEvent" ) ;
constructor w/ initialization
name | string which contains the event's name |
key | ASCII key (0 if special) |
special | special key if key==0 |
modifiers | active modifiers (CTRL etc.) |
public cKeyEvent ( const cKeyEvent & e ) ;
copy constructor
public virtual ~ cKeyEvent ( ) ;
destructor
protected unsigned char mKey
the key to transport
protected int mSpecial
special key to transport
protected int mModifiers
modifiers to transport
public virtual cKeyEvent * Clone ( ) const ;
clone function
public virtual unsigned char GetKey ( ) const ;
allow accessing the stored key
public virtual int GetSpecialKey ( ) const ;
allow accessing the stored special key
public virtual int GetKeyModifiers ( ) const ;
allow accessing the stored key modifiers
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.