HTPC ignores controller input if it is connected during launch

App name: Plex HTPC for Windows
Client version: 1.39.2.3822-a0cc3c3e
Platform version: 10.0.22621
Renderer: WebGL
(A button to copy the version info to clipboard would be nice. You can’t even select it with a mouse, had to type this out manually.)

I’m using Plex HTPC with an xbox controller. If it is turned on before launching plex it doesn’t work. I can turn it off and on all I want while plex is on it gets ignored. If I turn it on after Plex is launched everything works as expected. Based on the logs, it seems to get picked up twice, causing Plex to get confused.
On a side note, xbox controllers have been pretty much unchanged across generations, so you could probably include a wildcard id matcher like (.)?xbox. to make it easier on your users and get controllers to work out of the box.

Logs:
Controller connected on launch:
Jun 01, 2023 00:11:28.019 [2028] INFO - [Input/SDL] Found 1 joysticks
Jun 01, 2023 00:11:28.022 [2028] INFO - [Input/SDL] JoyStick #0 is Xbox Series X Controller with 16 buttons and 6 axes
Jun 01, 2023 00:11:28.022 [13480] INFO - [InputManager/SDL] Successfully inited input
Jun 01, 2023 00:11:28.023 [2028] INFO - [Input/SDL] Detected device was added.
Jun 01, 2023 00:11:28.023 [2028] INFO - [Input/SDL] Found 1 joysticks
Jun 01, 2023 00:11:28.024 [2028] INFO - [Input/SDL] JoyStick #0 is Xbox Series X Controller with 16 buttons and 6 axes
All input ignored

Controller not connected on launch:

Jun 01, 2023 00:14:16.520 [11092] INFO - [Input/SDL] Found 0 joysticks
Jun 01, 2023 00:14:16.521 [8820] INFO - [InputManager/SDL] Successfully inited input
Turning on the controller…
Jun 01, 2023 00:14:30.647 [11092] INFO - [Input/SDL] Detected device was added.
Jun 01, 2023 00:14:30.647 [11092] INFO - [Input/SDL] Found 1 joysticks
Jun 01, 2023 00:14:30.654 [11092] INFO - [Input/SDL] JoyStick #0 is Xbox Series X Controller with 16 buttons and 5 axes
Jun 01, 2023 00:14:32.629 [8820] DEBUG - [InputManager] Input received: source: Xbox Series X Controller keycode: KEY_HAT_RIGHT:0
Jun 01, 2023 00:14:32.629 [8820] DEBUG - [InputManager] Emit input action: [“right”]
Jun 01, 2023 00:14:32.629 [8820] INFO - [InputManager] [InputConnector] Sending actions to UI: [“right”]
Jun 01, 2023 00:14:32.783 [8820] DEBUG - [InputManager] Input received: source: Xbox Series X Controller keycode: KEY_HAT_RIGHT:1
Jun 01, 2023 00:14:33.285 [8820] DEBUG - [InputManager] Input received: source: Xbox Series X Controller keycode: KEY_HAT_LEFT:0
Jun 01, 2023 00:14:33.286 [8820] DEBUG - [InputManager] Emit input action: [“left”]
Jun 01, 2023 00:14:33.286 [8820] INFO - [InputManager] [InputConnector] Sending actions to UI: [“left”]
Jun 01, 2023 00:14:33.387 [8820] DEBUG - [InputManager] Input received: source: Xbox Series X Controller keycode: KEY_HAT_LEFT:1

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