Plex htpc: xbox series x controller not working

Plex HTPC.log (85.0 KB)

Hi guys I need your help. I prepared json for controller. But it is not working.

File name: xbox-controller-windows.json

{
“name”: “Xbox Controller”,
“idmatcher”: “XInput.*|Microsoft.*joystick driver”,
“mapping”:
{
// A
“KEY_BUTTON_0”: “enter”,

  // B
  "KEY_BUTTON_1": {
    "short": "back",
    "long": "home"
  },

  // X
  "KEY_BUTTON_2": "cycle_audio",

  // Y
  "KEY_BUTTON_3": "cycle_subtitle",
  "KEY_BUTTON_3": "search",

  // LB
  "KEY_BUTTON_4": "seek_backward",

  // RB
  "KEY_BUTTON_5": "seek_forward",

  // left thumbstick press
  "KEY_BUTTON_6": "host:toggleDebug",

  // right thumbstick press
  "KEY_BUTTON_7": "host:fullscreen",

  // start
  "KEY_BUTTON_8": "",

  // back
  "KEY_BUTTON_9": "",

  // Windows button
  "KEY_BUTTON_10": {
    "short": "home",
    "long": "exit"
  },

  // D-PAD
  "KEY_BUTTON_11": "up",
  "KEY_BUTTON_12": "down",
  "KEY_BUTTON_13": "left",
  "KEY_BUTTON_14": "right",

  // 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_3_UP": "increase_volume",
  "KEY_AXIS_3_DOWN": "decrease_volume",
  "KEY_AXIS_5_UP": "decrease_audio_delay",
  "KEY_AXIS_5_DOWN": "increase_audio_delay",

  // left trigger
  "KEY_AXIS_2_UP": "",

  // right trigger
  "KEY_AXIS_5_UP": "",
  
  // D-Pad with JoyHat events
  "KEY_HAT_DOWN": "down",
  "KEY_HAT_UP": "up",
  "KEY_HAT_RIGHT": "right",
  "KEY_HAT_LEFT": "left"

}

}

You shouldn’t need an input map for that controller as it should be supported out of the box. There is a current bug in Plex HTPC with any gamepad.

Make sure the controller is fully powered off.
Launch Plex HTPC
Wait until the interface is fully loaded and then power on the gamepad.

It should work then. Try that and post the result. We can go from there.

1 Like

Plex HTPC.log (81.5 KB)

i did.

inputmaps .
Converting to txt for sharing.

xbox-controller-windows.txt (1.7 KB)

Did it work as expected during that test? According the log you sent, it was detected as well as the button presses. Well, most of them. If it was partially working, you may want to try removing the config out to your desktop so it doesn’t get loaded and try that same thing with the default settings. Or I’ll have to dig in my system to see if I have a custom one set up that works properly that I can send as that is the controller I use with HTPC on Windows.

I am having a similar issue. This is the log from when I was using the input map I created using the official documentation:

Plex HTPC.1.log (170.5 KB)

Then I tried removing it and leaving only the defaults in their proper folder. Still didn’t work. Here is that log:

Plex HTPC.log (152.9 KB)

Thank you in advance for the help!

For several years there has been a bug which causes the controller to work only if it is connected when Plex HTPC is already running. Even then, it won’t work because there is another bug that has been around for months that causes an error after playing one episode when a controller is connected. So yeah, seems like Plex devs don’t care about controller support.

1 Like

That’s unfortunate. Maybe I should just look into other platforms. :frowning:

I don’t know if it helps, but I was also having some problems with my inputmaps.json. I had the file under the default folder therefore it wasn’t loaded. once I got it on the right place it started working as expected.

From:

C:\Users\kodi\AppData\Local\Plex HTPC\inputmaps\default

To:

C:\Users\kodi\AppData\Local\Plex HTPC\inputmaps

Thanks for the response, but as I said in my first comment, I used this documentation. So I did this already. :\

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.