mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Check if PS3Connected is true instead
This commit is contained in:
parent
4a3c903322
commit
b22f52895c
4 changed files with 4 additions and 4 deletions
|
@ -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: "));
|
||||
|
|
|
@ -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: "));
|
||||
|
|
|
@ -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: ";
|
||||
|
|
|
@ -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: "));
|
||||
|
|
Loading…
Reference in a new issue