Пример #1
0
def keyUp(key, x, y):
    #print "keyUp: {} {} {}".format(key, x, y)
    state = get_state()
    keyboard_on_event(state, key, "KEY_UP")
Пример #2
0
def keyDown(key, x, y):
    #print "keyDown: {} {} {}".format(key, x, y)
    state = get_state()
        #record("key released: {}".format(event.name))
    keyboard_on_event(state, key, "KEY_DOWN")