Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Event.KeyEvent Class Reference

Public Member Functions

None __init__ (self, int event_type, int key)
int 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

Protected Attributes

int _key = key

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.

Constructor & Destructor Documentation

◆ __init__()

None UM.Event.KeyEvent.__init__ ( self,
int event_type,
int key )
Creates a new key event, passing the event type on to the `Event`
parent class.

Member Function Documentation

◆ key()

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

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

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