Advertisement
Guest User

Ultimate Arcade 2 Controller

a guest
Apr 6th, 2017
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. //TEST: Make sure the controller is set to DInput mode
  2. //When A,B,X,Y or L1 is pressed: Two positions change value in HID-Test?
  3. [vid=0x20a0,pid=0x41b0]
  4.  
  5. //Buttons
  6. VPad_Button_A = 0x00,0x02
  7. VPad_Button_B = 0x00,0x04
  8. VPad_Button_X = 0x00,0x01
  9. VPad_Button_Y = 0x00,0x08
  10. VPad_Button_Plus = 0x01,0x02
  11. VPad_Button_Minus = 0x01,0x01
  12. VPad_Button_Home = 0x01,0x10
  13. VPad_Button_L = 0x00,0x10
  14. VPad_Button_R = 0x00,0x20
  15. VPad_Button_Stick_L = 0x01,0x04
  16. VPad_Button_Stick_R = 0x01,0x08
  17.  
  18. //VPad_Button_A = 0x13,0xFF
  19. //VPad_Button_B = 0x12,0xFF
  20. //VPad_Button_X = 0x14,0xFF
  21. //VPad_Button_Y = 0x11,0xFF
  22. //VPad_Button_L = 0x15,0xFF
  23.  
  24. //Triggers
  25. VPad_Button_ZL = 0x00,0x40
  26. VPad_Button_ZR = 0x00,0x80
  27.  
  28. //D-Pad
  29. VPAD_BUTTON_LEFT = 0x02,0x06 //W
  30. VPAD_BUTTON_RIGHT = 0x02,0x02 //E
  31. VPAD_BUTTON_UP = 0x02,0x00 //N
  32. VPAD_BUTTON_DOWN = 0x02,0x04 //S
  33.  
  34. //Thumbsticks
  35. VPad_L_Stick_X = 0x03,0x80
  36. VPad_L_Stick_X_MinMax = 0x08,0xEF
  37. VPad_L_Stick_X_Invert = False
  38. VPad_L_Stick_X_Deadzone = 0x0A
  39.  
  40. VPad_L_Stick_Y = 0x04,0x80
  41. VPad_L_Stick_Y_MinMax = 0x08,0xEF
  42. VPad_L_Stick_Y_Deadzone = 0x0A
  43. VPad_L_Stick_Y_Invert = True
  44.  
  45. VPad_R_Stick_X = 0x05,0x80
  46. VPad_R_Stick_X_MinMax = 0x08,0xEF
  47. VPad_R_Stick_X_Deadzone = 0x0A
  48. VPad_R_Stick_X_Invert = False
  49.  
  50. VPad_R_Stick_Y = 0x06,0x80
  51. VPad_R_Stick_Y_MinMax = 0x08,0xEF
  52. VPad_R_Stick_Y_Deadzone = 0x0A
  53. VPad_R_Stick_Y_Invert = True
  54.  
  55. //VPad_R_Stick_Y_Deadzone=0x26
  56. //VPad_R_Stick_X_Deadzone=0x24
  57. //VPad_L_Stick_Y_Deadzone=0x24
  58. //VPad_L_Stick_X_Deadzone=0x33
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement