Author: duncan
Date: Thu Dec 14 22:41:18 2006
New Revision: 8723
Modified:
branches/rel-1/freevo/src/plugins/joy.py
Log:
Added name of joystick device
Modified: branches/rel-1/freevo/src/plugins/joy.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/joy.py (original)
+++ branches/rel-1/freevo/src/plugins/joy.py Thu Dec 14 22:41:18 2006
@@ -76,7 +76,7 @@
plugin.DaemonPlugin.__init__(self)
self.plugin_name = 'JOY'
- print 'using joystick', config.JOY_DEV
+ print 'Using joystick %s (%s)' % (config.JOY_DEV, self.device_name)
self.poll_interval = 1
self.poll_menu_only = False
@@ -93,7 +93,7 @@
if r:
c = os.read(self.joyfd, 8)
- else:
+ else:
return
data = struct.unpack('IhBB', c)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog