Info: keyboard keys

Get Key "press": (if you need to check only for key "pressed")

For the 3 types for app.body, namely "Canvas", "Text", "Listbox" the script can recieve and process key press.

bind(event_code , callback)

Example script : (not yet available)

Get Key "down", "up" and "pressed":

Canvas (redraw_callback = None , event_callback = None)

event_callback will get a dict of the key event containing:
- 'type': one of EEventKeyDown, EEventKey, or EEventKeyUp
- 'keycode': the logical key
- 'scancode': the physical key
- 'modifier': ?

Example script :




















Previous|Next  | Menu        Copyright (c) 2006 Jurgen Scheible