KeyEvent Class Reference

Generic description of a keyboard event. More...

#include <common/common.hh>

Public Types

enum  EventType { NO_EVENT, PRESS, RELEASE }
 Key event types enumeration. More...
 

Public Member Functions

 KeyEvent ()
 Constructor. More...
 

Public Attributes

bool alt
 Was alt held during this key event? More...
 
bool control
 Was control held during this key event? More...
 
int key
 The raw value of the key pressed. More...
 
bool shift
 Was shift held during this key event? More...
 
std::string text
 Formatted string of the key pressed (could be uppercase). More...
 
EventType type
 Event type. More...
 

Detailed Description

Generic description of a keyboard event.

Member Enumeration Documentation

enum EventType

Key event types enumeration.

Enumerator
NO_EVENT 
PRESS 
RELEASE 

Constructor & Destructor Documentation

KeyEvent ( )

Constructor.

Member Data Documentation

bool alt

Was alt held during this key event?

bool control

Was control held during this key event?

int key

The raw value of the key pressed.

bool shift

Was shift held during this key event?

std::string text

Formatted string of the key pressed (could be uppercase).

EventType type

Event type.


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