Posts: 125
Joined: Oct 2003
Reputation:
0
Hi Guys, been reading through all the remote/controller threads and still have a simple question.
Do controllers that work in windows work in XBMC without mapping keys?
I looked in the keymap.xml file and noticed it had the xbox360 gamepad set up, so I figured I would take my gamepad in windows 'Logitech Cordless RumblePad 2 USB' and replace all parts in the ini that said xbox 360 controller with the above. However, that did not work. So are my only options to just map keyboard strokes to the gamepad keys? Not sure what else to try, thank you.
Posts: 125
Joined: Oct 2003
Reputation:
0
So I've been reading more and I see that contoller presses are done through UDP ports with events. I've installed a program called eventghost and it's neat but not as responsive as I'd like (plus it doesn't read all my gamepad buttons).
But let's be honest here, all it really does is map keyboard/mouse buttons to the controller. I can already do that with the Logitech software.
So, my real question here is, is there a program that I need to install that will tell XBMC that when I press button1, that XBMC see's it as a Button1 on the gamepad like the keymap.xml says? That's really all I need it to do, I don't think eventghost is the right app for it.
Any help is greatly appreciated!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
No, there is no such function currently.
Posts: 125
Joined: Oct 2003
Reputation:
0
Hi guys, I finally got my controller working exactly like a real xbox controller. So I am going to share my configuration in case others want to use it.
My controller: Logitech Cordless RumblePad 2 USB
Software used: Logitech keymapping profiler
Take a look at my crappy picture to see what button id's I set to the controller. (I can't attach files it looks like so hopfully you guys can understand this)
---6---------------------3---
--axis3----------------axis6--
-----------------------------
----------17-----9-----------
-----------------------------
---13---------------4----9---
-16--14-------------1----2--
---15------------------------
-----------------------------
--------11-------12----------
17=select
9=start
11=left thump button
12=right thumb button
so what you need to do in Logitech Profiler is map the following keyboard strokes to the corresponding keys. I have three rows below, first row is the gamepad id, second row is the keyboard stroke, third is to show how it correlates to a xbox controller.
Button ID--- Keyboard--- Original
1--- 1--- A
2--- 2--- B
3--- 3--- white
4--- 4--- X
5--- 5--- Y
6--- 6--- black
7--- 7---
8--- 8---
9--- 9--- Start
10--- q---
11--- w--- Left Analog Button
12--- e--- Right Analog Button
13--- up--- Dpad-Up
14--- right--- Dpad-Right
15--- down--- Dpad-Down
16--- left--- Dpad-Left
17--- r--- Back
axis id="3" --- t--- Left Shoulder
axis id="6"--- y--- Right Shoulder
Axis
LL,,, j
LR,,, k
LU,,, l
LD,,, m
RL,,, [
RR,,, ]
RU,,, +
RD,,, -
You need to realize that using [ and ] does not work and crashes xbmc, so feel free to map another key
Below is my pasted keymap.xml. Remember that you are mapping keyboard KEYS, so in the xml only change the sections under keyboard if you need to make adjustments. I hope this helps some people out, ittook me some time to get this together so I hope others can use it.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Thanks. Please use pastebin.com in the future.
Oh, and <[> and <]> shouldn't cause a crash - I'll look into it this evening.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
[ and ] are not valid characters for an XML tag.
Use <opensquarebracket> or <closesquarebracket> instead.
Cheers,
Jonathan
Posts: 125
Joined: Oct 2003
Reputation:
0
Ahh, makes sense! Thanks again, the Logitech RumblePad is working exactly like I want it to!! I'm digging my new HTPC, you guys rock. I've voted on Sourceforge as well.