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

Difference between revisions of "Talk:SDL Wii/tutorial"

From WiiBrew
Jump to navigation Jump to search
Line 13: Line 13:
 
[[User:GabberNL|GabberNL]] 18:25, 27 May 2009 (UTC)
 
[[User:GabberNL|GabberNL]] 18:25, 27 May 2009 (UTC)
 
::That's exactly what I've tried, it's working in my non SDL game [[Wii-Tac-Toe]]. Every thing is compiling correctly, it's just not working with my SDL program! -[[User:Crayon|Crayon]] 21:26, 27 May 2009 (UTC)
 
::That's exactly what I've tried, it's working in my non SDL game [[Wii-Tac-Toe]]. Every thing is compiling correctly, it's just not working with my SDL program! -[[User:Crayon|Crayon]] 21:26, 27 May 2009 (UTC)
 +
:::So it compiles with no problems. Thats good. What happens on the Wii? Does it give a code dump? Maybe you could paste here the source code so I can look into it. That would be much easier. [[User:GabberNL|GabberNL]] 11:06, 28 May 2009 (UTC)

Revision as of 13:06, 28 May 2009

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)

That's exactly what I've tried, it's working in my non SDL game Wii-Tac-Toe. Every thing is compiling correctly, it's just not working with my SDL program! -Crayon 21:26, 27 May 2009 (UTC)
So it compiles with no problems. Thats good. What happens on the Wii? Does it give a code dump? Maybe you could paste here the source code so I can look into it. That would be much easier. GabberNL 11:06, 28 May 2009 (UTC)