In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Talk:SDL Wii/tutorial

From WiiBrew
< Talk:SDL Wii
Jump to navigation Jump to search

Wiimote buttons

What's the best way to use the Wiimote with WPAD_ScanPads or with Wiimote SDL joystick mapping? Because in your tutorial you are using WPAD's functions. Thanks, Crayon 16:21, 26 May 2009 (UTC)

Well, I don't know. Never tried it with SDL joystick mapping and I dont know how I can use it. If somebody can explain how to use joystick mapping I may add it in my tutorials. GabberNL 18:09, 26 May 2009 (UTC)
Thanks, it could be great to include it in your tutorials if you find out how to use SDL joystick mapping. -Crayon 19:15, 26 May 2009 (UTC)
If you want a joystick example, you can check the UAE Wii menu code here (until line 718). The SDL page describes the button mappings. It only shows the DPAD and buttons, but the rest is available in the man-pages. --SimonKagstrom 13:04, 27 May 2009 (UTC)
Thanks, I'll check that later -Crayon 17:46, 27 May 2009 (UTC)

GabberNL, I tried to use WPAD_ButtonsDown in my SDL game but only WPAD_ButtonsHeld seems to work (like in your tutorial). Do I need to do something special to make WPAD_ButtonsDown work? -Crayon 17:46, 27 May 2009 (UTC)

Well, does it compile? Because when I try it, it does compile so I think it will also work on the Wii (haven't tested it). Have you declared down the right way? like:
u32 down = WPAD_ButtonsDown(0);

GabberNL 18:25, 27 May 2009 (UTC)