Wiiusesrc: Alot more back porting. Still needs more work.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4308 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
death2droid
2009-09-21 13:46:12 +00:00
parent 0e3baaa6ab
commit 035155754e
9 changed files with 244 additions and 53 deletions

View File

@ -189,6 +189,9 @@ static void nunchuk_pressed_buttons(struct nunchuk_t* nc, byte now) {
/* message is inverted (0 is active, 1 is inactive) */
now = ~now & NUNCHUK_BUTTON_ALL;
/* preserve old btns pressed */
nc->btns_last = nc->btns;
/* pressed now & were pressed, then held */
nc->btns_held = (now & nc->btns);