v14 Xbox 360 controller recognized but doesn't work
#1
Hey all, just installed Kodi 14.2 and I'm trying to get it working with my Rock Candy wired Xbox 360 controller. The controller is recognizedand generates events in the debug log, but Kodi doesn't actually respond to the events.

Here's the relevant section of the debug log:

Code:
16:14:33 T:3076  NOTICE: -->Python Interpreter Initialized<--
16:14:48 T:4192  NOTICE: CJoystick::EnumJoysticksCallback : Enabled Joystick: Controller (Rock Candy Gamepad for Xbox 360)
16:14:48 T:4192  NOTICE: CJoystick::EnumJoysticksCallback : Total Axis: 5 Total Hats: 1 Total Buttons: 10
16:15:15 T:4732  NOTICE: Thread LanguageInvoker start, auto delete: false
16:15:15 T:4732  NOTICE: Previous line repeats 2 times.
16:15:15 T:4732  NOTICE: -->Python Interpreter Initialized<--
16:16:00 T:4192  NOTICE: Previous line repeats 2 times.
16:16:00 T:4192  NOTICE: CJoystick::EnumJoysticksCallback : Enabled Joystick: Controller (Rock Candy Gamepad for Xbox 360)
16:16:00 T:4192  NOTICE: CJoystick::EnumJoysticksCallback : Total Axis: 5 Total Hats: 1 Total Buttons: 10
16:16:34 T:4192  NOTICE: Log level changed to "LOG_LEVEL_DEBUG_FREEMEM"
16:16:34 T:4192  NOTICE: Enabled debug logging due to GUI setting. Level 2.
16:16:34 T:4192   DEBUG: ------ Window Init () ------
16:16:38 T:4192   DEBUG: Joystick 0 hat 1 value 8
16:16:38 T:4192   DEBUG: Joystick 0 hat 1 hat centered
16:16:38 T:4192   DEBUG: Joystick 0 hat 1 value 2
16:16:39 T:4192   DEBUG: Joystick 0 hat 1 hat centered
16:16:39 T:4192   DEBUG: Joystick 0 hat 1 value 1
16:16:39 T:4192   DEBUG: Joystick 0 hat 1 hat centered
16:16:39 T:4192   DEBUG: Joystick 0 hat 1 value 4
16:16:40 T:4192   DEBUG: Joystick 0 hat 1 hat centered
16:16:40 T:4192   DEBUG: Joystick 0 button 1 Down
16:16:40 T:4192   DEBUG: ------ Window Deinit (Pointer.xml) ------
16:16:40 T:4192   DEBUG: Joystick 0 button 1 Up
16:16:41 T:4192   DEBUG: Joystick 0 button 2 Down
16:16:41 T:4192   DEBUG: Joystick 0 button 2 Up
16:16:41 T:4192   DEBUG: Joystick 0 button 4 Down
16:16:42 T:4192   DEBUG: Joystick 0 button 4 Up
16:16:42 T:4192   DEBUG: Joystick 0 button 3 Down
16:16:43 T:4192   DEBUG: Joystick 0 button 3 Up
16:16:43 T:4192   DEBUG: Joystick 0 button 1 Down
16:16:44 T:4192   DEBUG: Joystick 0 button 1 Up
16:16:45 T:4192   DEBUG: Joystick 0 button 2 Down
16:16:45 T:4192   DEBUG: Joystick 0 button 2 Up
16:16:45 T:4192   DEBUG: Joystick 0 button 4 Down
16:16:46 T:4192   DEBUG: Joystick 0 button 4 Up
16:16:46 T:4192   DEBUG: Joystick 0 button 1 Down
16:16:47 T:4192   DEBUG: Joystick 0 button 1 Up
16:16:47 T:4192   DEBUG: Joystick 0 button 1 Down
16:16:48 T:4192   DEBUG: Joystick 0 button 1 Up
16:16:49 T:4192   DEBUG: Joystick 0 button 1 Down
16:16:49 T:4192   DEBUG: Joystick 0 button 1 Up
16:16:50 T:4192   DEBUG: Joystick 0 button 3 Down
16:16:50 T:4192   DEBUG: Joystick 0 button 3 Up
16:16:50 T:4192   DEBUG: Joystick 0 button 4 Down
16:16:50 T:4192   DEBUG: Joystick 0 button 4 Up
16:16:50 T:4192   DEBUG: Joystick 0 button 2 Down
16:16:51 T:4192   DEBUG: Joystick 0 button 2 Up

I'm finding a few reports of similar problems on Google, but no solutions. Can anyone help?

(edit: joystick/gamepad support is enabled. I tried toggling it off and on, but it didn't help.)
Reply
#2
I'm guessing devs will want to see the entire log. The obvious guess that it's a controller not in our keymap doesn't seem to apply though, unless the Rock Candy Gamepad got added extremely recently.
Reply
#3
Actually, update. Can you try installing Isengard alpha2? Or alternatively replace your 360 xml with this one.

https://raw.githubusercontent.com/xbmc/x...roller.xml

It looks like the rock candy gamepad only got added this february, unless I'm misreading something.

https://github.com/xbmc/xbmc/commit/623e...7df69b824e
Reply
#4
It makes me sad this user hasn't replied.
Reply
#5
Hey! Sorry. Thank you for the suggestions!

The XML file worked. Unfortunately, my controller seems to have some issues; I've been trying to figure out if there's a way to change the size of the analog stick dead zone so it doesn't keep scrolling uncontrollably. But it would theoretically be working right now if it weren't for the stick problems. Thanks!
Reply
#6
You can indeed change the deadzone. It's an advanced setting. You can use this code:

Code:
<advancedsettings>
    <controllerdeadzone>0.2</controllerdeadzone>
</advancedsettings>

The closer the number gets to 1.0, the larger the deadzone.

And to learn about creating and advancedsettings.xml see here: http://kodi.wiki/view/Advancedsettings.xml
Reply
#7
Hey, having the same scrolling issues with my Rock Candy controller. Any news on if this worked or not? I don't know anything about creating xml files and don't want to delve too deep into it if it's not the right solution.
Reply

Logout Mark Read Team Forum Stats Members Help
Xbox 360 controller recognized but doesn't work0