OpenGLContext.events.keyboardevents

Event classes and manager relating to the keyboard

Classes

Raw keyboard events, includes <ctrl> and the like. Characters are reported as their un-modified equivalents, so that 'A' represents both "a" and "A"
attributes: type -- "keyboard" renderingPass -- pointer to the OpenGLContext.renderpass.RenderPass object associated with this event modifiers -- three-tuple of booleans: (shift, control, alt) name -- the "key name" see KeyboardEventManager.registerCallback for discussion of possible values. state -- Boolean 0 = up/released, 1 = down/pressed
Key "pressed" event, doesn't include control characters, and should provide "processed" characters, so that, for instance, <shift>-<capslock>-A gives "a", not "A". Note also that these are "full-press" events, not up/down notifications
attributes: type -- "keypress" renderingPass -- pointer to the OpenGLContext.renderpass.RenderPass object associated with this event modifiers -- three-tuple of booleans: (shift, control, alt) name -- the "key name" see KeypressEventManager.registerCallback for discussion of possible values.