dualshock4-xbox-emulate.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // This is a mapping that works better for the DS4 on windows
  2. // But since there is no good way to know if its a xbox or ps4 controller
  3. // connected you need to uncomment the idmatcher line below to get it to work
  4. //
  5. {
  6. "name": "Playstation Dual Shock 4 Windows Mode",
  7. //"idmatcher": "Microsoft.*joystick driver",
  8. "mapping": {
  9. // D-Pad
  10. "KEY_HAT_DOWN": "down",
  11. "KEY_HAT_UP": "up",
  12. "KEY_HAT_RIGHT": "right",
  13. "KEY_HAT_LEFT": "left",
  14. // Square
  15. "KEY_BUTTON_0": "cycle_audio",
  16. // X
  17. "KEY_BUTTON_1": "enter",
  18. // Circle
  19. "KEY_BUTTON_2": {
  20. "short": "back",
  21. "long": "home"
  22. },
  23. // Triangle
  24. "KEY_BUTTON_3": "cycle_subtitles",
  25. // L1
  26. "KEY_BUTTON_4": "seek_backward",
  27. // L2
  28. "KEY_BUTTON_5": "seek_forward",
  29. // option
  30. "KEY_BUTTON_8": "host:toggleDebug",
  31. // start
  32. "KEY_BUTTON_9": "host:fullscreen",
  33. // press left thumbstick
  34. "KEY_BUTTON_10": "",
  35. // press right thumbstick
  36. "KEY_BUTTON_11": "",
  37. // Playstation button
  38. "KEY_BUTTON_12": {
  39. "short": "home",
  40. "long": "exit"
  41. },
  42. // Trackpad press
  43. "KEY_BUTTON_13": "search",
  44. // left thumbstick axis
  45. "KEY_AXIS_0_UP": "left",
  46. "KEY_AXIS_0_DOWN": "right",
  47. "KEY_AXIS_1_UP": "up",
  48. "KEY_AXIS_1_DOWN": "down",
  49. // right thumbstick axis
  50. "KEY_AXIS_3_UP": "increase_volume",
  51. "KEY_AXIS_3_DOWN": "decrease_volume",
  52. "KEY_AXIS_2_UP": "decrease_audio_delay",
  53. "KEY_AXIS_2_DOWN": "increase_audio_delay"
  54. }
  55. }