while running == True: events = get_gamepad() for e in events: x_add,y_add = translate(e) #translates button pressions into keyboard and mouse action