2 # -*- coding: utf-8 -*-
4 lancement de l'application winwii
11 from optparse
import OptionParser
13 from app
import MinWii
15 def main(wiimoteSupport
, fullscreen
, audioDriver
) :
17 audioDriver
= None if not audioDriver
else audioDriver
# cast de '' en None. fluidsynth le teste spécifiquement…
18 minwii
= MinWii(wiimoteSupport
=wiimoteSupport
, fullscreen
=fullscreen
, audioDriver
=audioDriver
)
22 if __name__
== "__main__" :
23 usage
= "%prog [options]"
24 op
= OptionParser(usage
)
26 op
.add_option("--no-wii", dest
="wiimoteSupport"
27 , action
="store_false"
29 , help = u
"désactivation du support des wiimotes"
32 op
.add_option("--fullscreen", dest
="fullscreen"
35 , help = u
"activation du mode plein écran"
37 op
.add_option("--audio-driver", dest
="audio_driver"
40 , help=u
"driver audio pour le synthétiseur (fluidsynth) [%default]"
42 options
, args
= op
.parse_args()
44 main(options
.wiimoteSupport
, options
.fullscreen
, options
.audio_driver
)