From 69fea0a0aa73df359cf143887f326b0e0dba3b28 Mon Sep 17 00:00:00 2001 From: aed3 <32887801+aed3@users.noreply.github.com> Date: Thu, 26 Dec 2019 23:35:55 -0500 Subject: [PATCH] Update Ps4Data.ino --- examples/Ps4Data/Ps4Data.ino | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/Ps4Data/Ps4Data.ino b/examples/Ps4Data/Ps4Data.ino index ee3384f..05c932e 100644 --- a/examples/Ps4Data/Ps4Data.ino +++ b/examples/Ps4Data/Ps4Data.ino @@ -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 ) @@ -90,4 +90,4 @@ void loop() // Remove it when you're not trying to see the output delay(1000); } -} \ No newline at end of file +}