Skip to content

Commit

Permalink
Correct reference to wrong PS3 trigger button in getButtonPress
Browse files Browse the repository at this point in the history
  • Loading branch information
jimnarey committed Nov 30, 2020
1 parent 13767aa commit be4b782
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Firmware/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ uint8_t getButtonPress(ButtonEnum b){
ps3Val = (uint8_t)PS3Wired.getButtonPress(TRIANGLE);
break;
// Call a different function from the PS3USB library to get the level of
// pressure applied to the R2 and L2 triggers, not just 'on' or 'off
case R1:
ps3Val = (uint8_t)PS3Wired.getAnalogButton(R1);
// pressure applied to the L2 and R2 triggers, not just 'on' or 'off
case L2:
ps3Val = (uint8_t)PS3Wired.getAnalogButton(L2);
break;
case R2:
ps3Val = (uint8_t)PS3Wired.getAnalogButton(R2);
Expand Down

0 comments on commit be4b782

Please sign in to comment.