Original Xbox gamepad not working with XBMC on mac mini
#1
Sad 
OS X Version: 10.6.4
Platform: new Mac Mini
SVN Revision: 32773
Debug log: http://pastebin.com/PaqxCnn3

I have an original Xbox S gamepad connected to my Mac Mini using a homemade Xbox to USB adapter. I'm using the Xbox HID driver (http://xhd.sourceforge.net/). Mac OS X sees the gamepad and it works with other programs, including "Joystick And Gamepad Tester" which sees correct data coming out of it. So in general the gamepad is functioning correctly.

When I launch XBMC, it doesn't respond to the gamepad at all. I looked through its log files and there's no record of it detecting any kind of gamepad. (pastebin link above for log) Since Joystick And Gamepad Tester sees it as "Xbox Controller S" I edited the joystick.Microsoft.Xbox.Controller.S.xml file located in "XBMC.app/Contents/Resources/XBMC/system/keymaps" so that the name of the gamepad XBMC was looking for was "Xbox Controller S". That didn't make any difference - it still shows no sign of seeing the gamepad.

I searched around on the forums, and didn't find anything applicable to this problem. But it seems other people have gotten original Xbox gamepads as well as 360 gamepads working great with XBMC in OS X, with XBMC just detecting them automatically.

Any suggestions for what I can do to get this working?
Reply
#2
bump.

I realize this is an old post... but I am experiencing this problem exactly as it is written above, except I'm using OS X Mavericks on the latest xbmc monthly.

has anyone out there managed to get the original xbox controller to work with xbmc on OS X?
Reply
#3
(2013-11-22, 23:57)bahamas10 Wrote: bump.

I realize this is an old post... but I am experiencing this problem exactly as it is written above, except I'm using OS X Mavericks on the latest xbmc monthly.

has anyone out there managed to get the original xbox controller to work with xbmc on OS X?

Last time I tried it on Mac OSX I wasn't able to get it to work. Less to do with XBMC and more to do with the 3rd party Xbox controller drivers for OSX, which don't seem to be maintained anymore :(
Reply
#4
(2013-11-23, 01:33)Ned Scott Wrote:
(2013-11-22, 23:57)bahamas10 Wrote: bump.

I realize this is an old post... but I am experiencing this problem exactly as it is written above, except I'm using OS X Mavericks on the latest xbmc monthly.

has anyone out there managed to get the original xbox controller to work with xbmc on OS X?

Last time I tried it on Mac OSX I wasn't able to get it to work. Less to do with XBMC and more to do with the 3rd party Xbox controller drivers for OSX, which don't seem to be maintained anymore Sad


I found a modified version of the HID drivers that work with OS X Mavericks here http://macman860.wordpress.com/2013/05/0...os-x-lion/

I was able to get my Xbox controller to show up and work in nestopia, and various other programs and emulators. The controller works, I just don't know how to get XBMC to see it. Right now, nothing at all shows up in xbmc.log to say the joystick was even detected.
Reply
#5
I'm working on a solution for this currently. Right now I'm creating a node.js EventClient library for XBMC... it will allow communicating with XBMC over the EventServer API (UDP packets) from node.js. Once this is done, I'll write a node daemon to wire up the HID Xbox controller device to the EventServer API.

Theoretically this should work. I'll bump this thread as I have progress to share.
Reply
#6
That would be very awesome! I'd love be able to use my old xbox controller for XBMC again :D
Reply
#7
Step 1 complete. https://github.com/bahamas10/node-xbmc-event-client. I've written and opensourced Node.JS EventServer API code... the next step is to wire up the xbox controller to send the correct events to XBMC.
Reply
#8
Step 2 complete.

I've managed to get the original Xbox controller working in Node.js... the last step is to wire up the controller to the event server API.

The node xbox code is here https://github.com/bahamas10/node-xbox-hid-controller and a video of it in action is here https://www.youtube.com/watch?v=oPddaJtveMI
Reply
#9
Nice!
Reply
#10
I'm glad someone else wants to use the original (best) xbox controller with XBMC Smile

so close to being finished... i'm writing up some documentation and adding in some error handling... but it should be published tonight or tomorrow.

preview

Code:
$ ./xbmc-xbox-controller.js -vv
one controller found
opening device: USB_045e_0285_fd121000
connected to XBMC, ctrl-c to quit
{"button":"dpadright","map":"XG","down":true}
{"button":"dpadright","map":"XG","down":false}
2 updates sent in the last second
{"button":"dpadleft","map":"XG","down":true}
{"button":"dpadleft","map":"XG","down":false}
2 updates sent in the last second
Reply
#11
done! and it works!

https://github.com/bahamas10/xbmc-xbox-controller

On OS X you have to do the following steps:

1. install http://xhd.cvs.sourceforge.net/viewvc/xh...vision=1.3 (xbox driver)
2. install node.js http://nodejs.org
3. install the above program with `sudo npm install -g xbmc-xbox-controller`
4. run `xbmc-xbox-controller`

I'm using my original xbox controller on XBMC on my mac and it feels great!
Reply
#12
For those not interested in installing node.js you can check out the Objective C version of this here

https://github.com/bahamas10/XBMCXboxHIDController

It doesn't create an exclusive lock on the HID device so I would prefer this over the node.js implementation
Reply

Logout Mark Read Team Forum Stats Members Help
Original Xbox gamepad not working with XBMC on mac mini0