Permalink
Browse files

Fix kernel joystick emulation

  • Loading branch information...
1 parent dd33fd9 commit 1d4f3162605a6410ee839f4cee81ed588934180a @xerpi committed Jan 2, 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, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 32);
+ ksceCtrlSetAnalogEmulation(0, 0, lx, ly, 0x80, 0x80, lx, ly, 0x80, 0x80, 32);
break;
}
@@ -475,7 +475,7 @@ static void set_input_emulation()
js_moved = 1;
}
- ksceCtrlSetAnalogEmulation(0, 0, lx, ly, rx, ry, 0x80, 0x80, 0x80, 0x80, 32);
+ ksceCtrlSetAnalogEmulation(0, 0, lx, ly, rx, ry, lx, ly, rx, ry, 32);
break;
}

0 comments on commit 1d4f316

Please sign in to comment.