Line 125:
Line 125:
== Tips ==
== Tips ==
β
SDL_Init must include the SDL_INIT_JOYSTICK flag set for any input events to work, and SDL_JoystickOpen(0) must be called. Wiimote events come as SDL_MOUSBUTTON* and SDL_MOUSEMOTION as well as SDL_JOYBUTTON* events.
+
* SDL_Init must include the SDL_INIT_JOYSTICK flag set for any input events to work, and SDL_JoystickOpen(0) must be called. Wiimote events come as SDL_MOUSBUTTON* and SDL_MOUSEMOTION as well as SDL_JOYBUTTON* events.
+
+
* If you're going to be doing file I/O operations, call fatInitDefault() before any calls to SDL. Lockups can occur if you call that after SDL and do some big writes to the SD card.
== See Also ==
== See Also ==