We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efeb808 commit 4a44c8fCopy full SHA for 4a44c8f
PS4USB.h
@@ -112,6 +112,18 @@ class PS4USB : public HIDUniversal, public PS4Parser {
112
};
113
/**@}*/
114
115
+ /** @name USBDeviceConfig implementation */
116
+ /**
117
+ * Used by the USB core to check what this driver support.
118
+ * @param vid The device's VID.
119
+ * @param pid The device's PID.
120
+ * @return Returns true if the device's VID and PID matches this driver.
121
+ */
122
+ virtual boolean VIDPIDOK(uint16_t vid, uint16_t pid) {
123
+ return (vid == PS4_VID && pid == PS4_PID);
124
+ };
125
+ /**@}*/
126
+
127
private:
128
void (*pFuncOnInit)(void); // Pointer to function called in onInit()
129
0 commit comments