Wii Balansboard example January 03, 2009 10:51PM | Registered: 15 years ago Posts: 26 |
Re: Wii Balansboard example January 03, 2009 11:38PM | Registered: 15 years ago Posts: 2 |
Re: Wii Balansboard example January 04, 2009 04:16AM | Admin Registered: 16 years ago Posts: 5,132 |
Re: Wii Balansboard example January 04, 2009 12:48PM | Registered: 15 years ago Posts: 26 |
Re: Wii Balansboard example January 07, 2009 09:30PM | Registered: 15 years ago Posts: 26 |
Re: Wii Balansboard example January 07, 2009 09:31PM | Registered: 16 years ago Posts: 441 |
Re: Wii Balansboard example January 07, 2009 10:39PM | Admin Registered: 16 years ago Posts: 5,132 |
expansion_t balanceboard; balanceboard.type = WPAD_EXP_WIIBOARD; //Check for data from it every loop using: WPAD_Expansion(WPAD_BALANCE_BOARD, &balanceboard);
WPAD_Expansion(WPAD_BALANCE_BOARD, &exp2);//Get data from the attached expansion (the balance board in this case) x = exp2.wb.x; //Left Movements if(x < -4) paddlex -= 4; if(x < -8) paddlex -= 5; if(x < -13) paddlex -= 6; if(x < -15) paddlex -= 7; if(x < -18) paddlex -= 8; //Right Movements if(x > 4) paddlex += 4; if(x > 8) paddlex += 5; if(x > 13) paddlex += 6; if(x > 15) paddlex += 7; if(x > 18) paddlex += 8;