Rasterfarm-SDK
Loading...
Searching...
No Matches
KeyboardEvent Class Reference

#include <event.h>

Inheritance diagram for KeyboardEvent:
Event DynamicType

Public Types

enum  InputType : Event::InputType {
  KEYBOARD_PRESS ,
  KEYBOARD_RELEASE ,
  KEYBOARD_REPEAT
}
 
enum  ModifierMask {
  KEYBOARD_MODIFIER_NONE = 0 ,
  KEYBOARD_MODIFIER_SHIFT = 1 ,
  KEYBOARD_MODIFIER_LOCK = 2 ,
  KEYBOARD_MODIFIER_CTRL = 4 ,
  KEYBOARD_MODIFIER_ALT = 8
}
 
typedef long unsigned KeySym
 
typedef unsigned char KeyCode
 
- Public Types inherited from Event
enum  { UNKNOWN = 0 }
 
typedef uint InputType
 

Public Member Functions

 KeyboardEvent ()
 
 KeyboardEvent (KeySym keySym, ModifierMask modifierMask, InputType subType)
 
KeySym getKeySym () const
 
ModifierMask getModifierMask () const
 
- Public Member Functions inherited from Event
 Event (InputType subType=UNKNOWN)
 
virtual ~Event ()
 
const InputType getSubType () const
 
- Public Member Functions inherited from DynamicType
 DynamicType ()
 
template<class C >
void addType ()
 
TypeID getDerivedTypeId () const
 
template<class C >
const bool isType () const
 
template<class C >
const C * cast () const
 
template<class C >
C * cast ()
 
template<class FROM , class TO >
TO * cast ()
 
template<class FROM , class TO >
const TO * cast () const
 

Friends

class Application
 

Additional Inherited Members

- Public Attributes inherited from Event
InputType subType
 

Detailed Description

User-input event from keyboard.

Member Typedef Documentation

◆ KeyCode

typedef unsigned char KeyboardEvent::KeyCode

◆ KeySym

typedef long unsigned KeyboardEvent::KeySym

Member Enumeration Documentation

◆ InputType

Enumerator
KEYBOARD_PRESS 
KEYBOARD_RELEASE 
KEYBOARD_REPEAT 

◆ ModifierMask

Bitfield enumerations for keyboard modifier.

Enumerator
KEYBOARD_MODIFIER_NONE 
KEYBOARD_MODIFIER_SHIFT 
KEYBOARD_MODIFIER_LOCK 
KEYBOARD_MODIFIER_CTRL 
KEYBOARD_MODIFIER_ALT 

Constructor & Destructor Documentation

◆ KeyboardEvent() [1/2]

KeyboardEvent::KeyboardEvent ( )

◆ KeyboardEvent() [2/2]

KeyboardEvent::KeyboardEvent ( KeySym keySym,
ModifierMask modifierMask,
InputType subType )

Member Function Documentation

◆ getKeySym()

KeySym KeyboardEvent::getKeySym ( ) const
inline

◆ getModifierMask()

ModifierMask KeyboardEvent::getModifierMask ( ) const
inline

Friends And Related Symbol Documentation

◆ Application

friend class Application
friend

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