Xbox 360 Controller EventClient

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
frain Offline
Junior Member
Posts: 14
Joined: Mar 2008
Reputation: 0
Post: #11
ultrabrutal Wrote:Would it be possible to get it to work on the old Xbox provided you add the wireless receiver via USB available for the pc?

I do not know this, but my guess would be: no. You would need to ask someone who is more familiar with the Xbox port of XBMC than me to know for sure, though.

bb10 Wrote:Can't get this patch applied with tortoiseSVN, it doesn't like line 486 for some reason...

Well, the patch should apply cleanly to the SVN version from two months ago, when I submitted it Smile

I'll have a look at problem as soon as I can and report back.
find quote
bb10 Offline
Member
Posts: 87
Joined: Feb 2008
Reputation: 0
Post: #12
frain Wrote:Well, the patch should apply cleanly to the SVN version from two months ago, when I submitted it Smile

I'll have a look at problem as soon as I can and report back.

Well, to be honest, I tried it 2 months ago and tortoiseSVN didn't like it back then either. I just ignored it as I thought it would be added to SVN anyway.

Last night I thought I would try it again, and it failed. I decided to patch it manually.

I encountered a few problems like the unknown location of xbmcclient.h, so I tried to add it to the headerfiles. That didn't work so I copied it to the xbox360evenclient folder and it compiled (with BuildSetup.bat), but only the eventclient and no XBMC. Tongue

Thanks for the reply though, I'll wait for an updated patch. Smile
find quote
ultrabrutal Offline
Posting Freak
Posts: 954
Joined: Feb 2005
Reputation: 0
Location: South of Heaven
Post: #13
frain Wrote:I do not know this, but my guess would be: no.

Well the XBMC xbox version has the event server built in, so basicly adding a USB receiver to my server and two Xbmc 360 wireless remotes, should make it possible to access these two Xboxes? You see I have 3 xboxes and only one working logitech controller left Sad The two Xboxes are close enough for my PC server to be able to work with the USB receiver I think.
(This post was last modified: 2009-01-10 18:36 by ultrabrutal.)
find quote
frain Offline
Junior Member
Posts: 14
Joined: Mar 2008
Reputation: 0
Post: #14
ultrabrutal Wrote:Well the XBMC xbox version has the event server built in, so basicly adding a USB receiver to my server and two Xbmc 360 wireless remotes, should make it possible to access these two Xboxes? You see I have 3 xboxes and only one working logitech controller left Sad The two Xboxes are close enough for my PC server to be able to work with the USB receiver I think.

Ah, I think I misread your original question. To clarify: I believe it will be impossible to use the XBox360 Controller by connecting the USB receiver directly to the XBox.

On the other hand, using the XBox360 Controller together with the EventClient on Windows and telling the EventClient to send events to the XBMC instance running on the XBox should work! I think this is what you were referring to anyways, I'm sorry that I misunderstood your post!

In any case, I haven't been able to work on updating the patch yet. I hope to be able to do some work on it either this or the next weekend. Sorry about the delay!
find quote
frain Offline
Junior Member
Posts: 14
Joined: Mar 2008
Reputation: 0
Post: #15
bb10 Wrote:Thanks for the reply though, I'll wait for an updated patch. Smile

I posted an updated diff to http://trac.xbmc.org/ticket/5299. The diff should now apply cleanly to the SVN version (this time, I checked out a fresh copy and verified this fact).
find quote
bb10 Offline
Member
Posts: 87
Joined: Feb 2008
Reputation: 0
Post: #16
frain Wrote:I posted an updated diff to http://trac.xbmc.org/ticket/5299. The diff should now apply cleanly to the SVN version (this time, I checked out a fresh copy and verified this fact).

Thank you, it patched correctly now. Smile

I compiled an installer and installed it, however the controller doesn't work. Am I missing something? (Tested on Vista Home Basic 32bit, Vista Home Premium 64bit)
find quote
frain Offline
Junior Member
Posts: 14
Joined: Mar 2008
Reputation: 0
Post: #17
bb10 Wrote:Thank you, it patched correctly now. Smile

I compiled an installer and installed it, however the controller doesn't work. Am I missing something? (Tested on Vista Home Basic 32bit, Vista Home Premium 64bit)

You need to run the Xbox360EventClient.exe program separately. It should be built to project/VS2008Express/Release/Xbox360EventClient.exe.

Thanks a lot for testing this!
find quote
bb10 Offline
Member
Posts: 87
Joined: Feb 2008
Reputation: 0
Post: #18
frain Wrote:You need to run the Xbox360EventClient.exe program separately. It should be built to project/VS2008Express/Release/Xbox360EventClient.exe.

Thanks a lot for testing this!

Confirmed working on both 32bit and 64bit vista. Smile

It still has some things missing like the triggers not doing anything, but I guess that has to do with the mapping?

Also, wouldn't it be more elegant if it was integrated in XBMC or is this just a test?
find quote
frain Offline
Junior Member
Posts: 14
Joined: Mar 2008
Reputation: 0
Post: #19
bb10 Wrote:Confirmed working on both 32bit and 64bit vista. Smile
Nice Smile
Quote:It still has some things missing like the triggers not doing anything, but I guess that has to do with the mapping?
Hm, I don't use the triggers so I don't know - they should work in principle. I will investigate this!
Quote:Also, wouldn't it be more elegant if it was integrated in XBMC or is this just a test?
As far as I'm aware, this is the new-ish and preferred way to implement input devices for XBMC (see a related wiki entry here). Also, by seperating input handling and the other XBMC functions, people can run EventClients and EventServers on different machines, enabling for example the use of the XBox360 controller with XBMC running on an XBox (like ultrabrutal described above), which would otherwise be impossible.

People more involved with the XBMC development should of course feel free to correct any errors in the above explanation!
find quote
frain Offline
Junior Member
Posts: 14
Joined: Mar 2008
Reputation: 0
Post: #20
I submitted an updated patch to http://trac.xbmc.org/ticket/5299#comment:7. Note the following:
  • a bug is fixed which caused the handling of analog triggers and thumbsticks to be incorrect and
  • the Xbox360EventClient now has to be compiled separately, using the project file in tools/EventClients/Clients/Xbox360 Controller.
find quote