WPAD and PAD coincide? August 04, 2008 07:27PM | Registered: 15 years ago Posts: 114 |
WPAD_Init(); PAD_Init(); while (1) { WPAD_ScanPads(); // Check down events and do stuff PAD_ScanPads(); // Check down events and do stuff }
Re: WPAD and PAD coincide? August 05, 2008 03:16AM | Registered: 15 years ago Posts: 211 |
Re: WPAD and PAD coincide? August 05, 2008 03:48AM | Registered: 15 years ago Posts: 114 |
Re: WPAD and PAD coincide? August 05, 2008 12:53PM | Admin Registered: 15 years ago Posts: 19 |
Re: WPAD and PAD coincide? August 07, 2008 08:41PM | Registered: 15 years ago Posts: 114 |
Quote
blasty
The mentioned code in the first post should work. Perhaps show us some more of the actual handling code? I've used both WPAD/PAD in one application too, which worked just fine. Does WPAD_Init() actually work? (Check if the player1 LED comes up on the wiimote if you press a button)
Re: WPAD and PAD coincide? August 07, 2008 11:23PM | Registered: 15 years ago Posts: 45 |
You are only calling WPAD_INIT(); and PAD_INIT(); once right?Quote
AerialXQuote
blasty
The mentioned code in the first post should work. Perhaps show us some more of the actual handling code? I've used both WPAD/PAD in one application too, which worked just fine. Does WPAD_Init() actually work? (Check if the player1 LED comes up on the wiimote if you press a button)
Yes, the player 1 LED does come up once you press a button, so WPAD_Init() is working. My code just doesn't seem to catch any events...
Here, take a look at it yourself (if you can get past my IFDEFs :P)... Check out Game::MainLoop() in Game.cpp. Notice how Init and Update is called on each Input. See WiimoteInput.cpp and GamecubeInput.cpp; it's effectively doing what I posted. I guess it's possible I'm doing something stupid and missing it, but everything seems in-check to me.
Re: WPAD and PAD coincide? August 07, 2008 11:46PM | Registered: 15 years ago Posts: 114 |
Quote
vader347
You are only calling WPAD_INIT(); and PAD_INIT(); once right?
Re: WPAD and PAD coincide? August 08, 2008 12:52AM | Admin Registered: 15 years ago Posts: 5,132 |
Re: WPAD and PAD coincide? August 08, 2008 02:26AM | Registered: 15 years ago Posts: 45 |
Re: WPAD and PAD coincide? August 08, 2008 08:25PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: WPAD and PAD coincide? August 08, 2008 08:45PM | Registered: 15 years ago Posts: 114 |
WPADData* data = WPAD_Data(WPAD_CHAN_0);I am using WPAD_CHAN_0, although admittedly it's messy and checks things differently than the PAD checking code (because the WPAD stuff was written first and mainly just ported from my PC wiiuse checking code). I'll change it for consistency's sake, make it use WPAD_ButtonsDown() and friends, but I really doubt that'll fix anything since the PAD stuff fails in the same way the WPAD fails depending on their order.
Re: WPAD and PAD coincide? August 08, 2008 08:49PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: WPAD and PAD coincide? August 08, 2008 09:10PM | Registered: 15 years ago Posts: 114 |
Re: WPAD and PAD coincide? August 08, 2008 10:44PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: WPAD and PAD coincide? August 09, 2008 08:18AM | Registered: 15 years ago Posts: 114 |
Re: WPAD and PAD coincide? August 10, 2008 02:48AM | Registered: 15 years ago Posts: 45 |
Re: WPAD and PAD coincide? August 10, 2008 08:47AM | Registered: 15 years ago Posts: 114 |