Skip to content

Commit

Permalink
Fix right analog up/down
Browse files Browse the repository at this point in the history
  • Loading branch information
xerpi committed Jan 1, 2017
1 parent 33321bc commit 0622a5f
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 @@ -19,7 +19,7 @@ extern int ksceKernelPowerTick(int);
#define VITA_FRONT_TOUCHSCREEN_W 1920
#define VITA_FRONT_TOUCHSCREEN_H 1080

#define abs(x) ((x < 0) ? -(x) : (x))
#define abs(x) (((x) < 0) ? -(x) : (x))

struct ds4_input_report {
unsigned char report_id;
Expand Down Expand Up @@ -245,7 +245,7 @@ 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_x, 0, 0, 0, 0, 32);
ds4->right_x, ds4->right_y, 0, 0, 0, 0, 32);

if (buttons != 0 || js_moved)
ksceKernelPowerTick(0);
Expand Down

0 comments on commit 0622a5f

Please sign in to comment.