Advertisement
Guest User

moltengamepad config for x52 to two virtual gamepads on Linux PC

a guest
Feb 8th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | Gaming | 0 0
  1. [events="superset" vendor="06a3" product="0762" driver="hid-generic"]
  2.  
  3. # Put this in ~/.config/moltengamepad/gendevices/x52-pro.cfg
  4. #
  5. # Scribbles to run an X52Pro as two gamepads via `moltengamepad --num-gamepads 2 --mimic-xpad`
  6. # by BekoPharm / https://beko.famkos.net/
  7. #
  8. # 06a3:0762
  9. # Options file is license as WTFPL http://www.wtfpl.net/
  10.  
  11. name = "x52_pro_controller"
  12. devname = "x52_"
  13. exclusive = "false"
  14. change_permissions = "false"
  15. flatten = "false"
  16. rumble = "false"
  17. split=2
  18. 1.device_type = "gamepad"
  19. 2.device_type = "gamepad"
  20.  
  21. #btn_east = "cross", "The cross (X) button"
  22.  
  23. # Event mappings
  24.  
  25. #1.key(288) = "cross", "Primary fire button"
  26. 1.btn_trigger = "left_trigger", "Gun Button Step 1"
  27. # 1.key(302) = "right_trigger", "Gun Button Step 2"
  28. 1.btn_trigger_happy15 = "bbb", "Gun Button Step 2"
  29.  
  30. 1.btn_thumb2 = "a", "A button"
  31. 1.btn_top = "b", "B button"
  32. 1.btn_top2 = "x", "C button"
  33. 1.btn_thumb = "y", "Safety fire button (Fire 2)"
  34. 1.btn_pinkie = "guide"
  35. 1.btn_base2 = "button_16"
  36.  
  37. 1.abs_x = "left_x", "Left stick X axis"
  38. 1.abs_y = "left_y", "Left stick Y axis"
  39. 1.abs_rz = "right_x", "Right stick X axis (Z axis)"
  40. 1.abs_z = "right_y", "Right stick Y axis (Throttle axis)"
  41. 1.abs_hat0x = "leftright", "HAT POV up"
  42. 1.abs_hat0y = "updown", "HAT POV right"
  43. 1.btn_trigger_happy4 = "right_thumb", "POV2 up"
  44. 1.btn_trigger_happy5 = "right_shoulder", "POV2 right"
  45. 1.btn_trigger_happy6 = "left_thumb", "POV2 down"
  46. 1.btn_trigger_happy7 = "left_shoulder", "POV2 left"
  47.  
  48. 2.btn_trigger_happy3 = "left_trigger", "Scrollwheel click"
  49. 2.btn_dead = "right_trigger", "Mouse button (click)"
  50. # 2.btn_trigger_happy15 = "x", "I button"
  51.  
  52. 2.btn_base = "a", "D button"
  53. #2.btn_base2 = "b", "E button"
  54.  
  55. 2.key(719) = "left_shoulder", "Function button"
  56. 2.key(722) = "left_thumb", "Function page up"
  57. 2.key(723) = "left_thumb", "Function page down"
  58. 2.key(726) = "right_shoulder", "MFD select button"
  59. 2.key(724) = "right_thumb", "MFD select button up"
  60. 2.key(725) = "right_thumb", "MFD select button down"
  61.  
  62. 2.abs(004) = "left_x", "Left stick X axis"
  63. 2.abs(003) = "left_y", "Left stick Y axis"
  64. 2.abs(040) = "right_x", "Mouse X"
  65. 2.abs(041) = "right_y", "Mouse Y"
  66. 2.btn_trigger_happy8 = "up", "Throttle POV up"
  67. 2.btn_trigger_happy9 = "right", "Throttle POV right"
  68. 2.btn_trigger_happy10 = "down", "Throttle POV down"
  69. 2.btn_trigger_happy11 = "left", "Throttle POV left"
  70. 2.btn_trigger_happy17 = "start_stop", "Start/Stop"
  71. 2.btn_trigger_happy18 = "back", "Reset"
  72.  
  73. # Aliases
  74.  
  75. #1.btn_trigger = "primary"
  76. alias primary a
  77. alias secondary b
  78. alias third x
  79. alias fourth y
  80.  
  81. alias start start_stop
  82. alias select back
  83. alias mode guide
  84.  
  85. alias thumbl left_thumb
  86. alias thumbr right_thumb
  87.  
  88. # right shoulder
  89. alias tr right_shoulder
  90. # right trigger
  91. alias tr2 right_trigger
  92. # left shoulder
  93. alias tl left_shoulder
  94. # left trigger
  95. alias tl2 left_trigger
  96.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement