diff --git a/PS4BT.cpp b/PS4BT.cpp index 1459761e..a49195a2 100644 --- a/PS4BT.cpp +++ b/PS4BT.cpp @@ -43,7 +43,7 @@ const uint8_t PS4_BUTTONS[] PROGMEM = { 0x04, // SQUARE 0x10, // PS - 0x11, // KEYPAD + 0x11, // TOUCHPAD }; /** Analog buttons on the controller */ diff --git a/PS4BT.h b/PS4BT.h index d6db3d2b..379565d4 100644 --- a/PS4BT.h +++ b/PS4BT.h @@ -51,7 +51,7 @@ union PS4Buttons { uint8_t r3 : 1; uint8_t ps : 1; - uint8_t keypad : 1; + uint8_t touchpad : 1; uint8_t dummy : 6; }; uint8_t val[3]; diff --git a/controllerEnums.h b/controllerEnums.h index 700e50a2..2cc0b789 100644 --- a/controllerEnums.h +++ b/controllerEnums.h @@ -97,7 +97,7 @@ enum ButtonEnum { /** PS4 controllers buttons - SHARE and OPTIONS are present instead of SELECT and START */ SHARE = 4, OPTIONS = 5, - KEYPAD = 17, + TOUCHPAD = 17, /**@}*/ /**@{*/ diff --git a/examples/Bluetooth/PS4BT/PS4BT.ino b/examples/Bluetooth/PS4BT/PS4BT.ino index 6715b904..bf068876 100644 --- a/examples/Bluetooth/PS4BT/PS4BT.ino +++ b/examples/Bluetooth/PS4BT/PS4BT.ino @@ -92,8 +92,8 @@ void loop() { Serial.print(F("\r\nShare")); if (PS4.getButtonClick(OPTIONS)) Serial.print(F("\r\nOptions")); - if (PS4.getButtonClick(KEYPAD)) - Serial.print(F("\r\nKeypad")); + if (PS4.getButtonClick(TOUCHPAD)) + Serial.print(F("\r\nTouchpad")); } } } diff --git a/keywords.txt b/keywords.txt index 4f3cd1a9..a60fe5d8 100644 --- a/keywords.txt +++ b/keywords.txt @@ -121,7 +121,7 @@ T LITERAL1 SHARE LITERAL1 OPTIONS LITERAL1 -KEYPAD LITERAL1 +TOUCHPAD LITERAL1 LeftHatX LITERAL1 LeftHatY LITERAL1