Changes

47 bytes added ,  18:43, 12 January 2019
m
source link updated to github
Line 6: Line 6:  
| maintainer  = [[User:Tantric|Tantric]]
 
| maintainer  = [[User:Tantric|Tantric]]
 
| download    = http://code.google.com/p/sdl-wii/downloads/list
 
| download    = http://code.google.com/p/sdl-wii/downloads/list
| source      = http://code.google.com/p/sdl-wii/source/checkout
+
| source      = https://github.com/dborth/sdl-wii
 
}}
 
}}
   Line 147: Line 147:  
|}
 
|}
   −
You have to point the Wiimote towards the screen to use the Wiimote buttons.
+
You have to point the Wiimote towards the screen to use the Wiimote buttons as mouse buttons.
    
== Bugs ==
 
== Bugs ==
Line 159: Line 159:     
== 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. To enable this, for all wiimote events (both joystick and mouse), you must set the joystick event processing state with SDL_JoystickEventState. If you are not handling the wiimote via the event queue then you must explicitly request a joystick update by calling SDL_JoystickUpdate.
+
* SDL_Init must include the SDL_INIT_JOYSTICK flag set for any input events to work, and SDL_JoystickOpen(0) must be called. When you point the Wiimote towards the screen, Wiimote events come as SDL_MOUSBUTTON and SDL_MOUSEMOTION as well as SDL_JOYBUTTON events. To enable this, for all wiimote events (both joystick and mouse), you must set the joystick event processing state with SDL_JoystickEventState. If you are not handling the wiimote via the event queue then you must explicitly request a joystick update by calling SDL_JoystickUpdate.
    
* 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.
 
* 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.
1

edit