def keydown(key): #c = chr(int(key.keyCode)).lower() #c = int(key.keyCode) key = key._event try: c = key.keyCode if c > ord('0') and c < ord('9'): addPlayer(int(chr(c))) #for i in km.keymappings: # log(str(i)) if c in km.keymappings: km.add_key_down(km.keymappings[c]) #else: except Exception, e: log(str(e))
def bnb(): createLoggingPane(True) log("keys: [0-9] to select player, [wsad] to walk around") exported_methods.initialize_session(session_dispatcher)