mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
commit
8758b2fc25
4 changed files with 4 additions and 8 deletions
6
PS4BT.h
6
PS4BT.h
|
@ -65,10 +65,8 @@ protected:
|
|||
virtual void OnInitBTHID() {
|
||||
PS4Parser::Reset();
|
||||
enable_sixaxis(); // Make the controller send out the entire output report
|
||||
if (pFuncOnInit)
|
||||
pFuncOnInit(); // Call the user function
|
||||
else
|
||||
setLed(Blue);
|
||||
if (!pFuncOnInit)
|
||||
setLed(Blue); // Only call this is a user function has not been set
|
||||
};
|
||||
|
||||
/** Used to reset the different buffers to there default values */
|
||||
|
|
2
PS4USB.h
2
PS4USB.h
|
@ -65,7 +65,7 @@ protected:
|
|||
* @param len The length of the incoming data.
|
||||
* @param buf Pointer to the data buffer.
|
||||
*/
|
||||
virtual void ParseHIDData(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf) {
|
||||
virtual void ParseHIDData(USBHID *hid __attribute__((unused)), bool is_rpt_id __attribute__((unused)), uint8_t len, uint8_t *buf) {
|
||||
if (HIDUniversal::VID == PS4_VID && (HIDUniversal::PID == PS4_PID || HIDUniversal::PID == PS4_PID_SLIM))
|
||||
PS4Parser::Parse(len, buf);
|
||||
};
|
||||
|
|
|
@ -218,7 +218,7 @@ public:
|
|||
* @param finger 0 = first finger, 1 = second finger. If omitted, then 0 will be used.
|
||||
* @return Return the value of the counter, note that it is only a 7-bit value.
|
||||
*/
|
||||
uint8_t getTouchCounter(uint8_t finger = 00) {
|
||||
uint8_t getTouchCounter(uint8_t finger = 0) {
|
||||
return ps5Data.xy.finger[finger].counter;
|
||||
};
|
||||
|
||||
|
|
|
@ -64,8 +64,6 @@ protected:
|
|||
*/
|
||||
virtual void OnInitBTHID() {
|
||||
XBOXONESParser::Reset();
|
||||
if (pFuncOnInit)
|
||||
pFuncOnInit(); // Call the user function
|
||||
};
|
||||
|
||||
/** Used to reset the different buffers to there default values */
|
||||
|
|
Loading…
Reference in a new issue