From 6d4d3797bc1ff254c8227f1da34573a37f626075 Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Mon, 2 Jan 2017 01:00:00 +0100 Subject: [PATCH] Fix kernel joystick emulation --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 2892a3d..eb802ac 100644 --- a/main.c +++ b/main.c @@ -245,7 +245,8 @@ static void set_input_emulation(struct ds4_input_report *ds4) ksceCtrlSetButtonEmulation(0, 0, buttons, buttons, 32); ksceCtrlSetAnalogEmulation(0, 0, ds4->left_x, ds4->left_y, - ds4->right_x, ds4->right_y, 0, 0, 0, 0, 32); + ds4->right_x, ds4->right_y, ds4->left_x, ds4->left_y, + ds4->right_x, ds4->right_y, 32); if (buttons != 0 || js_moved) ksceKernelPowerTick(0);