Forum

Full Version: Controlling XBMC with a PS3 controller.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I finally got RetroPie up and running on Xbian. Lots of little issue's along the way (getting sound working was one). Now I would like to control XBMC via my PS3 controller, which is already working in Xbian over usb. I tried creating a keymap.xml is ".xbmc/userdata/keymaps/keymap.xml" but it still it not working. Controller works fine in emulationstation/retroarch. i got the ps3 config from the xbmc wiki.

Code:
<keymap>
  <global>
    <joystick name="PLAYSTATION(R)3 Controller (00:06:F7:66:24:76)">
      <button id="1">Info</button>          <!-- Select -->
      <button id="2">ContextMenu</button>   <!-- L3 -->
      <button id="3">CodecInfo</button>     <!-- R3 -->
      <button id="4">Play</button>          <!-- Start -->
      <button id="5">Up</button>            <!-- D-Pad Up -->
      <button id="6">Right</button>         <!-- D-Pad Right -->
      <button id="7">Down</button>          <!-- D-Pad Down -->
      <button id="8">Left</button>          <!-- D-Pad Left -->
      <button id="9">Rewind</button>        <!-- L2 -->
      <button id="10">FastForward</button>  <!-- R2 -->
      <button id="11">SkipPrevious</button> <!-- L1 -->
      <button id="12">SkipNext</button>     <!-- R1 -->
      <button id="13">ParentDir</button>    <!-- Triangle -->
      <button id="14">Stop</button>         <!-- Circle -->
      <button id="15">Select</button>       <!-- X -->
      <button id="16">OSD</button>          <!-- Square -->
    </joystick>
  </global>
</keymap>

I got the name of my generic PS3 controller using the following command.
Code:
cat /proc/bus/input/devices
Which gave me the name and following info.
Code:
I: Bus=0003 Vendor=054c Product=0268 Version=0111
N: Name="SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller"
P: Phys=usb-bcm2708_usb-1.2/input0
S: Sysfs=/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input2
U: Uniq=
H: Handlers=event2 js0
B: PROP=0
B: EV=1b
B: KEY=7 0 0 0 0 0 0 0 0 0 0 0 0 ffff 0 0 0 0 0 0 0 0 0
B: ABS=7fffff00 27
B: MSC=10
I edited in the name of my controller but it still it not working. Here is a snippet of the edit to keymap.xml
Code:
<keymap>
  <global>
    <joystick name="SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller">

What do I need to do to get this PS3 controller working in XBMC?

Off topic quetion. I stopped XBMC from starting on boot, but how do I set emulationstation to start on boot?
A little more info. I ran the following command to show all input from the controller.
Code:
jstest /dev/input/js0
I see lots of text when pressing button's, etc... But as soon as I load xbmc all this text stops. Any one know why?
I have uploaded the log file from xbmc.
I think it's because XBMC may have been compiled without joystick support?
I compiled XBMC Gotham with --enable-joystick, to install (frodo didn't compile)

Code:
wget http://dikonist.asuscomm.com:82/XBian/APT/pool/main/x/xbian-package-xbmc-gotham-nightly/xbian-package-xbmc-gotham-nightly_2.9-10.3_armhf.deb
sudo dpkg -i xbian-package-xbmc-gotham-nightly_2.9-10.3_armhf.deb
(7th Sep, 2013 11:34 AM)Takenover83 Wrote: [ -> ]I finally got RetroPie up and running on Xbian. Lots of little issue's along the way (getting sound working was one). Now I would like to control XBMC via my PS3 controller, which is already working in Xbian over usb. I tried creating a keymap.xml is ".xbmc/userdata/keymaps/keymap.xml" but it still it not working. Controller works fine in emulationstation/retroarch. i got the ps3 config from the

Hi,

How did you get retropie working? with the PS3 controler and fully functional in xbian?
Can you post the steps? Smile

Thnak you
(11th Sep, 2013 08:24 PM)Koenkk Wrote: [ -> ]I compiled XBMC Gotham with --enable-joystick, to install (frodo didn't compile)

Code:
wget http://dikonist.asuscomm.com:82/XBian/APT/pool/main/x/xbian-package-xbmc-gotham-nightly/xbian-package-xbmc-gotham-nightly_2.9-10.3_armhf.deb
sudo dpkg -i xbian-package-xbmc-gotham-nightly_2.9-10.3_armhf.deb

@Koenkk

is --enable-joystick default compile option for gotham?
I am also interested in controlling XBMC using a gamepad. Has there been any progress in this matter? Is that option enabled in Gotham?
@woonx

it is not. with default XBMC config files joystick triggers SDL requirement and SDL -> X11. and this messes with windowing system .

last time I tried I got XBMC compile, Joystick was declared as supported but it was'nt.

if anyone knows combo/patch to make this work, post it.
Love to know how to get retropie working from xbmc (with adv launcher or rcb)
Reference URL's