Permalink
Browse files

Set center values to right joystick (when using nunchuk) and triggers

  • Loading branch information...
1 parent f37c8a9 commit dd33fd959708ed2b2b67bbc9479532c7df3d8a49 @xerpi committed Jan 1, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 main.c
View
@@ -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;
}
@@ -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;
}

0 comments on commit dd33fd9

Please sign in to comment.