mirror of
https://github.com/jellyfin/jellyfin-desktop.git
synced 2026-10-26 16:45:24 +00:00
* Added support for joyhat events, fixes ds4 d-pad * Fixed dead-banding and axis events correctly * Updates to DS4 keymap and Xbox keymap
66 lines
1.2 KiB
JSON
66 lines
1.2 KiB
JSON
{
|
|
"name": "Playstation Dual Shock 4",
|
|
"idmatcher": "Wireless Controller",
|
|
"mapping": {
|
|
// D-Pad
|
|
"KEY_HAT_DOWN": "down",
|
|
"KEY_HAT_UP": "up",
|
|
"KEY_HAT_RIGHT": "right",
|
|
"KEY_HAT_LEFT": "left",
|
|
|
|
// Square
|
|
"KEY_BUTTON_0": "cycle_audio",
|
|
|
|
// X
|
|
"KEY_BUTTON_1": "enter",
|
|
|
|
// Circle
|
|
"KEY_BUTTON_2": {
|
|
"short": "back",
|
|
"long": "home"
|
|
},
|
|
|
|
// Triangle
|
|
"KEY_BUTTON_3": "cycle_subtitles",
|
|
|
|
// L1
|
|
"KEY_BUTTON_4": "seek_backward",
|
|
|
|
// L2
|
|
"KEY_BUTTON_5": "seek_forward",
|
|
|
|
// option
|
|
"KEY_BUTTON_8": "host:toggleDebug",
|
|
|
|
// start
|
|
"KEY_BUTTON_9": "host:fullscreen",
|
|
|
|
// press left thumbstick
|
|
"KEY_BUTTON_10": "",
|
|
|
|
// press right thumbstick
|
|
"KEY_BUTTON_11": "",
|
|
|
|
// Playstation button
|
|
"KEY_BUTTON_12": {
|
|
"short": "home",
|
|
"long": "exit"
|
|
},
|
|
|
|
// Trackpad press
|
|
"KEY_BUTTON_13": "search",
|
|
|
|
// left thumbstick axis
|
|
"KEY_AXIS_0_UP": "left",
|
|
"KEY_AXIS_0_DOWN": "right",
|
|
"KEY_AXIS_1_UP": "up",
|
|
"KEY_AXIS_1_DOWN": "down",
|
|
|
|
// right thumbstick axis
|
|
"KEY_AXIS_5_UP": "increase_volume",
|
|
"KEY_AXIS_5_DOWN": "decrease_volume",
|
|
"KEY_AXIS_2_UP": "decrease_audio_delay",
|
|
"KEY_AXIS_2_DOWN": "increase_audio_delay"
|
|
}
|
|
}
|