Skip to content

Commit

Permalink
Swap triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
xerpi committed Aug 29, 2018
1 parent 0ba5a79 commit 479c916
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ static void patch_ctrl_data(const struct ds4_input_report *ds4, SceCtrlData *pad
buttons |= SCE_CTRL_LEFT;

if (ds4->l1)
buttons |= SCE_CTRL_L1;
buttons |= SCE_CTRL_LTRIGGER;
if (ds4->r1)
buttons |= SCE_CTRL_R1;
buttons |= SCE_CTRL_RTRIGGER;

if (ds4->l2)
buttons |= SCE_CTRL_LTRIGGER;
buttons |= SCE_CTRL_L1;
if (ds4->r2)
buttons |= SCE_CTRL_RTRIGGER;
buttons |= SCE_CTRL_R1;

if (ds4->l3)
buttons |= SCE_CTRL_L3;
Expand Down

1 comment on commit 479c916

@HRudyPlayZ
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this an option, would be better if the triggers weren't inverted :/

Please sign in to comment.