|
33 | 33 | #define XBOX_OUTPUT_PIPE 2
|
34 | 34 |
|
35 | 35 | // PID and VID of the different devices
|
36 |
| -#define XBOX_VID 0x045E // Microsoft Corporation |
37 |
| -#define MADCATZ_VID 0x1BAD // For unofficial Mad Catz controllers |
38 |
| -#define JOYTECH_VID 0x162E // For unofficial Joytech controllers |
39 |
| -#define GAMESTOP_VID 0x0E6F // Gamestop controller |
40 |
| - |
41 |
| -#define XBOX_WIRED_PID 0x028E // Microsoft 360 Wired controller |
42 |
| -#define XBOX_WIRELESS_PID 0x028F // Wireless controller only support charging |
43 |
| -#define XBOX_WIRELESS_RECEIVER_PID 0x0719 // Microsoft Wireless Gaming Receiver |
44 |
| -#define XBOX_WIRELESS_RECEIVER_THIRD_PARTY_PID 0x0291 // Third party Wireless Gaming Receiver |
45 |
| -#define MADCATZ_WIRED_PID 0xF016 // Mad Catz wired controller |
46 |
| -#define GAMESTOP_WIRED_PID 0x0401 // Gamestop wired controller |
| 36 | +#define XBOX_VID 0x045E // Microsoft Corporation |
| 37 | +#define MADCATZ_VID 0x1BAD // For unofficial Mad Catz controllers |
| 38 | +#define JOYTECH_VID 0x162E // For unofficial Joytech controllers |
| 39 | +#define GAMESTOP_VID 0x0E6F // Gamestop controller |
| 40 | + |
| 41 | +#define XBOX_WIRED_PID 0x028E // Microsoft 360 Wired controller |
| 42 | +#define XBOX_WIRELESS_PID 0x028F // Wireless controller only support charging |
| 43 | +#define XBOX_WIRELESS_RECEIVER_PID 0x0719 // Microsoft Wireless Gaming Receiver |
| 44 | +#define XBOX_WIRELESS_RECEIVER_THIRD_PARTY_PID 0x0291 // Third party Wireless Gaming Receiver |
| 45 | +#define MADCATZ_WIRED_PID 0xF016 // Mad Catz wired controller |
| 46 | +#define GAMESTOP_WIRED_PID 0x0401 // Gamestop wired controller |
| 47 | +#define AFTERGLOW_WIRED_PID 0x0213 // Afterglow wired controller - it uses the same VID as a Gamestop controller |
47 | 48 |
|
48 | 49 | #define XBOX_REPORT_BUFFER_SIZE 14 // Size of the input report buffer
|
49 | 50 |
|
@@ -105,7 +106,7 @@ class XBOXUSB : public USBDeviceConfig {
|
105 | 106 | * @return Returns true if the device's VID and PID matches this driver.
|
106 | 107 | */
|
107 | 108 | virtual boolean VIDPIDOK(uint16_t vid, uint16_t pid) {
|
108 |
| - return ((vid == XBOX_VID || vid == MADCATZ_VID || vid == JOYTECH_VID || vid == GAMESTOP_VID) && (pid == XBOX_WIRED_PID || pid == MADCATZ_WIRED_PID || pid == GAMESTOP_WIRED_PID)); |
| 109 | + return ((vid == XBOX_VID || vid == MADCATZ_VID || vid == JOYTECH_VID || vid == GAMESTOP_VID) && (pid == XBOX_WIRED_PID || pid == MADCATZ_WIRED_PID || pid == GAMESTOP_WIRED_PID || pid == AFTERGLOW_WIRED_PID)); |
109 | 110 | };
|
110 | 111 | /**@}*/
|
111 | 112 |
|
|
0 commit comments