2010-12-20, 01:44
Hi there, I read a lot of thread this last week trying to solve this problem.
I'm trying to control XBMC using a USB XBOX 360 Controller (NOT the wireless like a lot of people)
1st: I set loglevel to DEBUG at advancedsettings.xml
now I can see the log entries produced by the joystick:
1st:
Ok, so I can see that Joystick name is: "XBOX 360 For Windows (Controller)"
Now I will look for buttons IDs. I'll start with only A and B buttons:
when I press those I've got this in the log:
I tried now just a simple "Keymap.xml" to test if I'm doing things right and write this:
I tried but it didn't worked. So I thought that ids may be only numerical when I looked at ps3 sample and changed it to this:
but it also didn't worked.
Anybody knows how to got this joystick to work under windows?
Thanks in advance,
Andre
I'm trying to control XBMC using a USB XBOX 360 Controller (NOT the wireless like a lot of people)
1st: I set loglevel to DEBUG at advancedsettings.xml
now I can see the log entries produced by the joystick:
1st:
Code:
21:17:27 T:3960 M:789417984 NOTICE: Enabled Joystick: XBOX 360 For Windows (Controller)
Ok, so I can see that Joystick name is: "XBOX 360 For Windows (Controller)"
Now I will look for buttons IDs. I'll start with only A and B buttons:
when I press those I've got this in the log:
Code:
21:17:31 T:3960 M:756625408 DEBUG: Joystick 0 button 1 Down
21:17:31 T:3960 M:756604928 DEBUG: Joystick 0 button 1 Up
21:17:31 T:3960 M:756600832 DEBUG: Joystick 0 button 2 Down
21:17:31 T:3960 M:756916224 DEBUG: Joystick 0 button 2 Up
I tried now just a simple "Keymap.xml" to test if I'm doing things right and write this:
Code:
<keymap>
<joystick name="XBOX 360 For Windows (Controller)">
<button id="Joystick 0 button 1">Select</button>
<button id="Joystick 0 button 2">PreviousMenu</button>
</joystick>
</keymap>
I tried but it didn't worked. So I thought that ids may be only numerical when I looked at ps3 sample and changed it to this:
Code:
[CODE]
<keymap>
<joystick name="XBOX 360 For Windows (Controller)">
<button id="1">Select</button>
<button id="2">PreviousMenu</button>
</joystick>
</keymap>
[/CODE]
but it also didn't worked.
Anybody knows how to got this joystick to work under windows?
Thanks in advance,
Andre