Renamed KEYPAD to TOUCHPAD

This commit is contained in:
Kristian Lauszus 2014-01-12 16:33:19 +01:00
parent 7469ff099e
commit c163228063
5 changed files with 6 additions and 6 deletions

View file

@ -43,7 +43,7 @@ const uint8_t PS4_BUTTONS[] PROGMEM = {
0x04, // SQUARE
0x10, // PS
0x11, // KEYPAD
0x11, // TOUCHPAD
};
/** Analog buttons on the controller */

View file

@ -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];

View file

@ -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,
/**@}*/
/**@{*/

View file

@ -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"));
}
}
}

View file

@ -121,7 +121,7 @@ T LITERAL1
SHARE LITERAL1
OPTIONS LITERAL1
KEYPAD LITERAL1
TOUCHPAD LITERAL1
LeftHatX LITERAL1
LeftHatY LITERAL1