LINUX- USB Game pad for XBMC 10
#1
Okay this s not really a gamepad but presents itself as one in Ubuntu 10.10 (Linux Mint 10).

I: Bus=0003 Vendor=1130 Product=0202 Version=0110
N: Name="Compx Game Controller"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input42
U: Uniq=
H: Handlers=event4 js0
B: EV=1b
B: KEY=fff 0 0 0 0 0 0 0 0 0
B: ABS=3002f
B: MSC=10

It is the BluWave remote for PS3. It comes with its own IR Dongle and successfully sends Joystick commands to jstest /dev/input/js0



I have edited the PS3 remote file joystick.Sony.PLAYSTATION®3.Controller.xml

as follows and renamed it both gamepad.xml and remote.xml.
<code>
<keymap>
<global>
<joystick name="Compx Game Controller">
<altname>BluWave</altname>
<altname>IR Remote</altname>
<button id="15">Select</button>
<button id="14">ParentDir</button>
<button id="16">FullScreen</button>
<button id="13">Queue</button>
<button id="11">PreviousMenu</button>
<button id="8">Left</button>
<button id="6">Right</button>
<button id="5">Up</button>
<button id="7">Down</button>
<button id="2">Screenshot</button>
<button id="3">XBMC.ActivateWindow(ShutdownMenu)</button>
<button id="4">XBMC.ActivateWindow(PlayerControls)</button>
<axis limit="+1" id="4">VolumeDown</axis>
<axis limit="-1" id="4">VolumeUp</axis>
<axis limit="+1" id="1">AnalogSeekForward</axis>
<axis limit="-1" id="1">AnalogSeekBack</axis>
<axis limit="+1" id="13">ScrollUp</axis>
<axis limit="+1" id="14">ScrollDown</axis>
</joystick>
</global>
</keymap>
</code>



Unfortunately I get nothing out of XBMC . I then enabled debugging and see nothing for a detected game controller or remote


Am I missing something for XBMC to detect the remote that is effectively a USB gamepad?

Thanks
Reply
#2
I'm having a similiar issue bud with a Veho Air keyboard, Mouse, Gamepad combo (http://www.veho-uk.com/main/shop_detail....rticle=141)

Its not working in XBMC in windows either. Does the keymap need to have the exact Device name that the XBMC log files see?
Reply
#3
Yes the name needs to match

I imagine in your case this looks like a full keyboard and mouse which probably works out of the box. To get the Joystick working, you need to figure out what your OS identifies the game controller as.

In the example I posted it was
Compx Game Controller

This particular remote however has USB disconnection issues, but I have since found other PS3 remotes that do work

I started working from the PS3 joystick file that is already in the directory . You need to rename it and conform the name to your device.
Reply

Logout Mark Read Team Forum Stats Members Help
LINUX- USB Game pad for XBMC 100