1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/games/pydance/files/patch-ui.py
Roman Bogorodskiy d3acf5dc87 Update to 1.0.3.
PR:		82902
Submitted by:	Rudolf Polzer (maintainer)
2005-07-03 03:46:36 +00:00

19 lines
495 B
Python

--- ui.py.orig Sat Jul 2 21:14:32 2005
+++ ui.py Sat Jul 2 21:16:27 2005
@@ -1,6 +1,6 @@
from pygame.locals import *
from constants import mainconfig
-import pad, pygame
+import pad, pygame, time
(PASS, CANCEL, UP, DOWN, LEFT, RIGHT, START, SELECT, CONFIRM,
PGUP, PGDN, FULLSCREEN, SORT, CLEAR) = range(14)
@@ -63,6 +63,7 @@
self.add_event(key, pid, event)
def poll(self):
+ time.sleep(0.01)
pid, ev = self.handler.poll()
nev = self.events.get(abs(ev), PASS)