View Single Post
Old 09-15-2003, 01:01 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

Vizard already handles special keys. For example, if you want to check for the insert and delete key being pressed you would do the following:

def onkeydown(key):
    if key == viz.KEY_INSERT:
        print 'Insert key pressed'
    elif key == viz.KEY_DELETE:
        print 'Delete key pressed'
There is a list of all the special keys in the documentation under "User Guide -> Appendix -> Keyboard Codes"

Hope this helps!
Reply With Quote