From b22f52895cc703601d60ed3f41ef5ff985d18a12 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Sun, 24 Nov 2013 15:15:46 +0100 Subject: [PATCH] Check if PS3Connected is true instead --- examples/Bluetooth/PS3BT/PS3BT.ino | 2 +- examples/Bluetooth/PS3Multi/PS3Multi.ino | 2 +- examples/Bluetooth/PS3SPP/PS3SPP.ino | 2 +- examples/PS3USB/PS3USB.ino | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/Bluetooth/PS3BT/PS3BT.ino b/examples/Bluetooth/PS3BT/PS3BT.ino index e98d5b73..c63fbdcd 100644 --- a/examples/Bluetooth/PS3BT/PS3BT.ino +++ b/examples/Bluetooth/PS3BT/PS3BT.ino @@ -35,7 +35,7 @@ void loop() { Serial.print(PS3.getAnalogHat(LeftHatX)); Serial.print(F("\tLeftHatY: ")); Serial.print(PS3.getAnalogHat(LeftHatY)); - if (!PS3.PS3NavigationConnected) { + if (PS3.PS3Connected) { // The Navigation controller only have one joystick Serial.print(F("\tRightHatX: ")); Serial.print(PS3.getAnalogHat(RightHatX)); Serial.print(F("\tRightHatY: ")); diff --git a/examples/Bluetooth/PS3Multi/PS3Multi.ino b/examples/Bluetooth/PS3Multi/PS3Multi.ino index 2471cfcc..dcb0b8e7 100644 --- a/examples/Bluetooth/PS3Multi/PS3Multi.ino +++ b/examples/Bluetooth/PS3Multi/PS3Multi.ino @@ -40,7 +40,7 @@ void loop() { Serial.print(PS3[i]->getAnalogHat(LeftHatX)); Serial.print(F("\tLeftHatY: ")); Serial.print(PS3[i]->getAnalogHat(LeftHatY)); - if (!PS3[i]->PS3NavigationConnected) { // The Navigation controller only have one joystick + if (PS3[i]->PS3Connected) { // The Navigation controller only have one joystick Serial.print(F("\tRightHatX: ")); Serial.print(PS3[i]->getAnalogHat(RightHatX)); Serial.print(F("\tRightHatY: ")); diff --git a/examples/Bluetooth/PS3SPP/PS3SPP.ino b/examples/Bluetooth/PS3SPP/PS3SPP.ino index 0263c10a..edebdc61 100644 --- a/examples/Bluetooth/PS3SPP/PS3SPP.ino +++ b/examples/Bluetooth/PS3SPP/PS3SPP.ino @@ -59,7 +59,7 @@ void loop() { output += PS3.getAnalogHat(LeftHatX); output += "\tLeftHatY: "; output += PS3.getAnalogHat(LeftHatY); - if (!PS3.PS3NavigationConnected) { + if (PS3.PS3Connected) { // The Navigation controller only have one joystick output += "\tRightHatX: "; output += PS3.getAnalogHat(RightHatX); output += "\tRightHatY: "; diff --git a/examples/PS3USB/PS3USB.ino b/examples/PS3USB/PS3USB.ino index 50a020c0..b3e6e2c4 100644 --- a/examples/PS3USB/PS3USB.ino +++ b/examples/PS3USB/PS3USB.ino @@ -32,7 +32,7 @@ void loop() { Serial.print(PS3.getAnalogHat(LeftHatX)); Serial.print(F("\tLeftHatY: ")); Serial.print(PS3.getAnalogHat(LeftHatY)); - if (!PS3.PS3NavigationConnected) { + if (PS3.PS3Connected) { // The Navigation controller only have one joystick Serial.print(F("\tRightHatX: ")); Serial.print(PS3.getAnalogHat(RightHatX)); Serial.print(F("\tRightHatY: "));