Skip to content

Commit

Permalink
Update Ps4Data.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
aed3 authored Dec 27, 2019
1 parent d157d00 commit 69fea0a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions examples/Ps4Data/Ps4Data.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ void loop()
// Below has all accessible outputs from the controller
if(PS4.isConnected()) {

if ( PS4.data.button.Up )
if ( PS4.data.button.up )
Serial.println("Up Button");
if ( PS4.data.button.Down )
if ( PS4.data.button.down )
Serial.println("Down Button");
if ( PS4.data.button.Left )
if ( PS4.data.button.left )
Serial.println("Left Button");
if ( PS4.data.button.Right )
if ( PS4.data.button.right )
Serial.println("Right Button");

if ( PS4.data.button.UpRight )
if ( PS4.data.button.upright )
Serial.println("Up Right");
if ( PS4.data.button.UpLeft )
if ( PS4.data.button.upleft )
Serial.println("Up Left");
if ( PS4.data.button.DownLeft )
if ( PS4.data.button.downleft )
Serial.println("Down Left");
if ( PS4.data.button.DownRight )
if ( PS4.data.button.downright )
Serial.println("Down Right");

if ( PS4.data.button.triangle )
Expand Down Expand Up @@ -90,4 +90,4 @@ void loop()
// Remove it when you're not trying to see the output
delay(1000);
}
}
}

0 comments on commit 69fea0a

Please sign in to comment.