Skip to content

Commit

Permalink
Set center values to right joystick (when using nunchuk) and triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
xerpi committed Jan 1, 2017
1 parent f37c8a9 commit dd33fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static void set_input_emulation()
if (wiimote.nunchuk.buttons & NUNCHUK_BTN_C)
buttons |= SCE_CTRL_L1;

ksceCtrlSetAnalogEmulation(0, 0, lx, ly, 0, 0, 0, 0, 0, 0, 32);
ksceCtrlSetAnalogEmulation(0, 0, lx, ly, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 32);
break;
}

Expand Down Expand Up @@ -475,7 +475,7 @@ static void set_input_emulation()
js_moved = 1;
}

ksceCtrlSetAnalogEmulation(0, 0, lx, ly, rx, ry, 0, 0, 0, 0, 32);
ksceCtrlSetAnalogEmulation(0, 0, lx, ly, rx, ry, 0x80, 0x80, 0x80, 0x80, 32);
break;
}

Expand Down

0 comments on commit dd33fd9

Please sign in to comment.