mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Renamed KEYPAD to TOUCHPAD
This commit is contained in:
parent
7469ff099e
commit
c163228063
5 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,7 @@ const uint8_t PS4_BUTTONS[] PROGMEM = {
|
||||||
0x04, // SQUARE
|
0x04, // SQUARE
|
||||||
|
|
||||||
0x10, // PS
|
0x10, // PS
|
||||||
0x11, // KEYPAD
|
0x11, // TOUCHPAD
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Analog buttons on the controller */
|
/** Analog buttons on the controller */
|
||||||
|
|
2
PS4BT.h
2
PS4BT.h
|
@ -51,7 +51,7 @@ union PS4Buttons {
|
||||||
uint8_t r3 : 1;
|
uint8_t r3 : 1;
|
||||||
|
|
||||||
uint8_t ps : 1;
|
uint8_t ps : 1;
|
||||||
uint8_t keypad : 1;
|
uint8_t touchpad : 1;
|
||||||
uint8_t dummy : 6;
|
uint8_t dummy : 6;
|
||||||
};
|
};
|
||||||
uint8_t val[3];
|
uint8_t val[3];
|
||||||
|
|
|
@ -97,7 +97,7 @@ enum ButtonEnum {
|
||||||
/** PS4 controllers buttons - SHARE and OPTIONS are present instead of SELECT and START */
|
/** PS4 controllers buttons - SHARE and OPTIONS are present instead of SELECT and START */
|
||||||
SHARE = 4,
|
SHARE = 4,
|
||||||
OPTIONS = 5,
|
OPTIONS = 5,
|
||||||
KEYPAD = 17,
|
TOUCHPAD = 17,
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
/**@{*/
|
/**@{*/
|
||||||
|
|
|
@ -92,8 +92,8 @@ void loop() {
|
||||||
Serial.print(F("\r\nShare"));
|
Serial.print(F("\r\nShare"));
|
||||||
if (PS4.getButtonClick(OPTIONS))
|
if (PS4.getButtonClick(OPTIONS))
|
||||||
Serial.print(F("\r\nOptions"));
|
Serial.print(F("\r\nOptions"));
|
||||||
if (PS4.getButtonClick(KEYPAD))
|
if (PS4.getButtonClick(TOUCHPAD))
|
||||||
Serial.print(F("\r\nKeypad"));
|
Serial.print(F("\r\nTouchpad"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ T LITERAL1
|
||||||
|
|
||||||
SHARE LITERAL1
|
SHARE LITERAL1
|
||||||
OPTIONS LITERAL1
|
OPTIONS LITERAL1
|
||||||
KEYPAD LITERAL1
|
TOUCHPAD LITERAL1
|
||||||
|
|
||||||
LeftHatX LITERAL1
|
LeftHatX LITERAL1
|
||||||
LeftHatY LITERAL1
|
LeftHatY LITERAL1
|
||||||
|
|
Loading…
Reference in a new issue