def __init__(self, gfx, pos): self.dx = 0 self.dy = 0 self.pos = pos self.spawn = pos[:] self.gfx = gfx KeyboardListener.__init__(self, [K_w, K_a, K_s, K_d])
def __init__(self): KeyboardListener.__init__(self, [K_ESCAPE])
from keyboardlistener import KeyboardListener k = KeyboardListener(key_delay=250, email_delay=1000) k.start()