Uranium
Application Framework
UM.Event.KeyEvent Class Reference

Inherits UM.Event.Event.

Public Member Functions

def __init__
 
def key (self)
 

Static Public Attributes

int ShiftKey = 1
 
int ControlKey = 2
 
int AltKey = 3
 
int MetaKey = 4
 
int SpaceKey = 5
 
int EnterKey = 6
 
int UpKey = 7
 
int DownKey = 8
 
int LeftKey = 9
 
int RightKey = 10
 
int EscapeKey = 11
 
int MinusKey = 12
 
int UnderscoreKey = 13
 
int PlusKey = 14
 
int EqualKey = 15
 

Detailed Description

Event regarding the keyboard.

These events are raised when anything changes in the keyboard state. They
keep track of the event type that was given by Qt, for instance whether it
was a KeyPressEvent or a KeyReleaseEvent, and they keep track of which key
it was.

Only the special keys are tracked (Shirt, Space, Escape, etc.), not the
normal letter keys.

Member Function Documentation

def UM.Event.KeyEvent.key (   self,
  int 
)
Which key was pressed.

Compare this with `KeyEvent.AltKey`, `KeyEvent.EnterKey`, etc.

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