Skip to content

Commit

Permalink
Fix kernel joystick emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
xerpi committed Jan 2, 2017
1 parent 0622a5f commit 6d4d379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6d4d379

Please sign in to comment.