summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9f42e2e)
def _wiimotesEventCallBack(self, wt, id, wmp) :
if self.screen == SCREEN_PLAY :
pygame_wiimouse._default_event_cb(wt, id, wmp)
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']) :
wm = wmp[0]
if id == self.nwiimotes - 1 and \
wiiuse.is_just_pressed(wm, wiiuse.button['Home']) :