commentaire++
[minwii.git] / src / minwii / app.py
index da2bcb8..a4d2005 100755 (executable)
@@ -70,6 +70,9 @@ class MinWii(object):
     def _wiimotesEventCallBack(self, wt, id, wmp) :
         if self.screen == SCREEN_PLAY :
             pygame_wiimouse._default_event_cb(wt, id, wmp)
+            
+            # le bouton Home de la télécommande permet de sortir
+            # (envoi d'un événement clavier esc)
             wm = wmp[0]
             if id == self.nwiimotes - 1 and \
                 wiiuse.is_just_pressed(wm, wiiuse.button['Home']) :