diff --git a/PS4USB.h b/PS4USB.h index ea38455a..16dabad4 100644 --- a/PS4USB.h +++ b/PS4USB.h @@ -112,6 +112,18 @@ protected: }; /**@}*/ + /** @name USBDeviceConfig implementation */ + /** + * Used by the USB core to check what this driver support. + * @param vid The device's VID. + * @param pid The device's PID. + * @return Returns true if the device's VID and PID matches this driver. + */ + virtual boolean VIDPIDOK(uint16_t vid, uint16_t pid) { + return (vid == PS4_VID && pid == PS4_PID); + }; + /**@}*/ + private: void (*pFuncOnInit)(void); // Pointer to function called in onInit() };