Fix Xbox 360 controller support

  Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
shiretoko212 Offline
Team-XBMC Member
Posts: 137
Joined: Jul 2012
Reputation: 0
Post: #41
Parent post updated with http://pastebin.com/gyBGgPJM (v1.95)
Changes in v1.95: Thanks to da-anda for doing the work to merge it into his PR. This pastebin link reflects the latest version in the PR with three small corrections and includes a FullscreenLiveTV section unique to Frodo and the original buttons 11-15 for other nonstandard drivers that need it.
(This post was last modified: 2012-11-28 18:18 by shiretoko212.)
find quote
natethomas Offline
Team-XBMC Community Manager
Posts: 2,831
Joined: Apr 2008
Reputation: 53
Post: #42
That's a big keymap! We've finally managed to cross the 700 line barrier!

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]
find quote
shiretoko212 Offline
Team-XBMC Member
Posts: 137
Joined: Jul 2012
Reputation: 0
Post: #43
Yeah, especially since each device name adds 40 lines. Judging from the strangeness of the names, there are no doubt at least half a dozen more out there that we don't know about. Why did Microsoft do that?
(This post was last modified: 2012-11-29 09:11 by shiretoko212.)
find quote
binBD Offline
Senior Member
Posts: 199
Joined: May 2011
Reputation: 3
Location: illinois
Post: #44
(2012-11-15 20:07)shiretoko212 Wrote:  Sorry for the delayed reply everyone. For some reason, the forum wasn't sending me notification emails.

MonkeyRoach: "Everything works pretty good except one problem.When the wireless controller turns off it doesn't work anymore."
pshchelo: "when the controller turns off after idling (naturally happens when you watch a movie and do not touch any controls) the whole XBMC quits immediately without any notice!"
Those are worth filing bug reports on. http://trac.xbmc.org/ There is nothing I can do about that in the keymap.

darksupernova: "I added the following instead of the gamepad name: Xbox 360 Wireless Controller"
I made a new version 1.91 in the original post and added that device name to the list of altname tags. Additionally, v1.91 improves the dpad video time stepping defaults, including back button to go back 7 seconds. Makes the dpad more predictable and consistent. right/left = +/-30 seconds. up/down = +/-10 minutes. back button = -7 seconds.

darksupernova: "I would like to use the sticks for up, down, left, right, however when I try this, they spas out and click 100 times! How do I only let them input once?"
Not possible without some kind of code change. I tried that as well. Just get used to the d-pad.


wookietv: "is there going to be any support for the linux variations?"
The default Linux drivers for the 360 controller use completely different button/axis mappings. Unless a different driver for Linux behaves like the Windows driver (someone let me know if this is the case), it isn't possible to support it with this keymapping.

i feel the same way
so could you help me vote to fix this and spread the word
we need a scrolltime="#" fo the axis control
http://forum.xbmc.org/showthread.php?tid=146660
(This post was last modified: 2012-11-29 18:04 by binBD.)
find quote
da-anda Offline
Team-XBMC Member
Posts: 1,392
Joined: Jun 2009
Reputation: 27
Location: germany
Post: #45
I just updated my branch. If the keymap is now good to go I'll create the PR and hope it'll get in for Beta2.
Link: https://github.com/da-anda/xbmc/commit/f...444970557d
(This post was last modified: 2012-11-29 21:53 by da-anda.)
find quote
Japaja Offline
Fan
Posts: 507
Joined: May 2010
Reputation: 2
Location: Croatia
Post: #46
Just got a wired xbox 360 controller for games and wondered why it didn't work with xmbc. Thanks a lot shiretoko212, I owe you a beer. Smile
find quote
shiretoko212 Offline
Team-XBMC Member
Posts: 137
Joined: Jul 2012
Reputation: 0
Post: #47
binBD, if you use the dpad in combination with the left and right triggers to navigate, it's as good as or better than having it on the left thumbstick. The left thumbstick works very well for time seeking (and time seeking this way works in any menu of xbmc while any media is playing). Try the latest keymap version.

Japaja, just what I like to hear. Donate that beer to the project: http://xbmc.org/contribute/donate/

da-anda, looks perfect. Glad to hear that it may make it into the next beta. I hope it's noted on the release changelog, so more people break out their controllers.
(This post was last modified: 2012-11-30 08:59 by shiretoko212.)
find quote
shiretoko212 Offline
Team-XBMC Member
Posts: 137
Joined: Jul 2012
Reputation: 0
Post: #48
On page 2 of this thread, someone mentioned that "I'm using this with PS3 controller with motioninjoy." So I reviewed the other keymaps in github and came upon this: https://github.com/da-anda/xbmc/blob/f53...roller.xml It could use the same treatment the 360 keymap received, as it has nearly the same layout and capabilities. I don't own a PS3 controller, so I can't do it myself.

Anyone who owns a PS3 controller, please, take that github ps3 controller xml file as a base and migrate the ideas of the 1.95 keymap. http://pastebin.com/gyBGgPJM I think PS3 controllers require a 3rd party driver, so mention how it works with motioninjoy or other PS3 driver solutions on whichever OS you use, just in case the button number mappings vary by driver. The device names seem fine as well, but I don't know for sure.
(This post was last modified: 2012-11-30 10:17 by shiretoko212.)
find quote
Japaja Offline
Fan
Posts: 507
Joined: May 2010
Reputation: 2
Location: Croatia
Post: #49
(2012-11-30 07:35)shiretoko212 Wrote:  Japaja, just what I like to hear. Donate that beer to the project: http://xbmc.org/contribute/donate/

Done. Blush
find quote
Rafa_m Offline
Junior Member
Posts: 4
Joined: Nov 2012
Reputation: 0
Post: #50
(2012-11-27 04:55)shiretoko212 Wrote:  Rafa_m: Which operating system are you using? Rerun xbmc, and then what device name shows up in the xbmc.log when you search for "Enabled Joystick:" without quotes? Search for multiple instances, just in case there's more than one device. Share each whole line here, and I'll update the keymap with it for you to use. The pastebin you linked to shows no change in the altnames from the supplied keymap. As you have likely discovered another device name, you'd be helping this project by sharing it here and getting it to work.

i am using windows 7

here is the line on the log for the joystick:

Enabled Joystick: Controller (Xbox 360 Wireless Receiver for Windows)
find quote
Post Reply