Uranium
Application Framework
|
Inherits UM.Event.Event.
Public Member Functions | |
None | __init__ (self, int event_type, int key) |
int | key (self) |
Protected Attributes | |
_key | |
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.
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.
int UM.Event.KeyEvent.key | ( | self | ) |
Which key was pressed. Compare this with `KeyEvent.AltKey`, `KeyEvent.EnterKey`, etc.