Guest User

Untitled

a guest
Dec 15th, 2019
9
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #elif defined(USB_XINPUT)
  2. #define DEVICE_CLASS 0xFF
  3. #define DEVICE_SUBCLASS 0xFF
  4. #define DEVICE_PROTOCOL 0xFF
  5. #define BCD_DEVICE 0x0114
  6. #define DEVICE_ATTRIBUTES 0xA0
  7. #define DEVICE_POWER 0xFA
  8. #define VENDOR_ID 0x045e
  9. #define PRODUCT_ID 0x028e
  10. #define MANUFACTURER_NAME {0x00A9,'M','i','c','r','o','s','o','f','t'}
  11. #define MANUFACTURER_NAME_LEN 10
  12. #define PRODUCT_NAME {'C','o','n','t','r','o','l','l','e','r'}
  13. #define PRODUCT_NAME_LEN 10
  14. #define EP0_SIZE 8
  15. #define NUM_ENDPOINTS 7
  16. #define NUM_USB_BUFFERS 24
  17. #define NUM_INTERFACE 4
  18. #define XINPUT_INTERFACE 0 // XInput
  19. #define XINPUT_RX_ENDPOINT 2
  20. #define XINPUT_RX_SIZE 8
  21. #define XINPUT_TX_ENDPOINT 1
  22. #define XINPUT_TX_SIZE 20
  23. #define CONFIG_DESC_SIZE 153
  24. #define KEYBOARD_INTERFACE 1 // Keyboard
  25. #define KEYBOARD_ENDPOINT 7
  26. #define KEYBOARD_SIZE 8
  27. #define KEYBOARD_INTERVAL 1
  28. #define KEYMEDIA_INTERFACE 2 // Keyboard Media Keys
  29. #define KEYMEDIA_ENDPOINT 7
  30. #define KEYMEDIA_SIZE 8
  31. #define KEYMEDIA_INTERVAL 4
  32. #define MOUSE_INTERFACE 3 // Mouse
  33. #define MOUSE_ENDPOINT 7
  34. #define MOUSE_SIZE 8
  35. #define MOUSE_INTERVAL 1
  36. #define ENDPOINT1_CONFIG ENDPOINT_TRANSMIT_ONLY
  37. #define ENDPOINT2_CONFIG ENDPOINT_RECEIVE_ONLY
  38. #define ENDPOINT3_CONFIG ENDPOINT_TRANSMIT_ONLY
  39. #define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY
  40. #define ENDPOINT5_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE
  41. #define ENDPOINT6_CONFIG ENDPOINT_TRANSMIT_ONLY
  42. #define ENDPOINT7_CONFIG ENDPOINT_TRANSMIT_ONLY
RAW Paste Data