diff clients/rio_de_hola/run.py @ 157:bb9902910067

input_rework merged! Bad features: * Broken DND for zero-projekt. * Design short-comings.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 14 Oct 2008 07:41:48 +0000
parents ae3b8139c7c7
children 815354ba295e
line wrap: on
line diff
--- a/clients/rio_de_hola/run.py	Sun Oct 12 20:30:09 2008 +0000
+++ b/clients/rio_de_hola/run.py	Tue Oct 14 07:41:48 2008 +0000
@@ -15,6 +15,7 @@
 if not os.path.exists('settings.xml'):
 	shutil.copyfile('settings-dist.xml', 'settings.xml')
 
+import fife_compat
 import fife, fifelog
 from scripts import world
 from scripts.common import eventlistenerbase
@@ -31,12 +32,7 @@
 		self.engine = engine
 		self.world = world
 		engine.getEventManager().setNonConsumableKeys([
-			fife.Key.ESCAPE,
-			fife.Key.F10,
-			fife.Key.LEFT,
-			fife.Key.RIGHT,
-			fife.Key.UP,
-			fife.Key.DOWN])
+			fife.Key.ESCAPE,])
 
 		self.quit = False
 		self.aboutWindow = None
@@ -50,6 +46,7 @@
 		self.rootpanel.show()
 
 	def keyPressed(self, evt):
+		print evt
 		keyval = evt.getKey().getValue()
 		keystr = evt.getKey().getAsString().lower()
 		consumed = False