# HTPC ignores controller input if it is connected during launch

**URL:** https://forums.plex.tv/t/htpc-ignores-controller-input-if-it-is-connected-during-launch/843047
**Category:** Plex Players
**Tags:** plex-htpc
**Created:** [May 31, 2023, 10:27pm UTC](https://forums.plex.tv/t/htpc-ignores-controller-input-if-it-is-connected-during-launch/843047 "2023-05-31T22:27:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Hebok\_Felnott](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@Hebok\_Felnott](https://forums.plex.tv/u/Hebok_Felnott)
#### Post date: [May 31, 2023, 10:27pm UTC](https://forums.plex.tv/t/htpc-ignores-controller-input-if-it-is-connected-during-launch/843047/1 "2023-05-31T22:27:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [August 29, 2023, 10:28pm UTC](https://forums.plex.tv/t/htpc-ignores-controller-input-if-it-is-connected-during-launch/843047/2 "2023-08-29T22:28:13Z")

</div>

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