Author: duncan
Date: Fri Sep 29 12:11:09 2006
New Revision: 8260

Modified:
   branches/rel-1-5/freevo/src/games/game.py

Log:
[ 1566590 ] Patch to stop joystick when running a game
Patch applied, changed tabs to spaces.


Modified: branches/rel-1-5/freevo/src/games/game.py
==============================================================================
--- branches/rel-1-5/freevo/src/games/game.py   (original)
+++ branches/rel-1-5/freevo/src/games/game.py   Fri Sep 29 12:11:09 2006
@@ -97,16 +97,23 @@
         if plugin.getbyname('MIXER'):
             plugin.getbyname('MIXER').reset()
 
+        if plugin.is_active('joy'):
+            plugin.getbyname('JOY').enable(FALSE)
+
         if DEBUG:
             print 'Game.play(): Starting thread, cmd=%s' % self.command
         
-       self.app=GameApp(self.command, stop_osd=1)
+        self.app=GameApp(self.command, stop_osd=1)
         self.prev_app = rc.app()
         rc.app(self)
 
+
     def stop(self):
         self.app.stop()
-       rc.app(None)
+        rc.app(None)
+        if plugin.is_active('joy'):
+            plugin.getbyname('JOY').enable(TRUE)
+
 
     def eventhandler(self, event, menuw=None):
         return self.item.eventhandler(event, self.menuw)

-------------------------------------------------------------------------
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

Reply via email to