- modeResolution = (1024,768)
- pygame.display.set_mode(modeResolution)
+ screenResolution = (1024,768)
+
+ if wimoteSupport :
+ from pywiiuse import pygame_wiimouse
+ pygame_wiimouse.init(4, 5, screenResolution) # look for 4, wait 5 seconds
+ nwiimotes = pygame_wiimouse.get_count()
+ print '%d wiimotes' % nwiimotes
+ WT = pygame_wiimouse.WT
+ WT.pause()
+ else :
+ nwiimotes = 0
+ class _WTFacade :
+ selectWimoteIndex = 0
+ def pause(self):
+ pass
+ def resume(self):
+ pass
+ def selectWiimote(self, i):
+ pass
+ WT = _WTFacade()
+
+ pygame.display.set_mode(screenResolution)