Forum
[PROBLEM] Controlling XBMC with a PS3 controller. - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [PROBLEM] Controlling XBMC with a PS3 controller. (/thread-1326.html)



Controlling XBMC with a PS3 controller. - Takenover83 - 7th Sep, 2013 11:34 AM

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?


RE: Controlling XBMC with a PS3 controller. - Takenover83 - 8th Sep, 2013 04:06 AM

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.


RE: Controlling XBMC with a PS3 controller. - Takenover83 - 11th Sep, 2013 11:28 AM

I think it's because XBMC may have been compiled without joystick support?


RE: Controlling XBMC with a PS3 controller. - mk01 - 11th Sep, 2013 12:12 PM

yes

https://github.com/xbianonpi/xbian/wiki/Compiling-XBMC-&-XBMC-dependencies


RE: Controlling XBMC with a PS3 controller. - Koenkk - 11th Sep, 2013 08:24 PM

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



RE: Controlling XBMC with a PS3 controller. - JuStAdsor - 26th Nov, 2013 06:29 PM

(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


RE: Controlling XBMC with a PS3 controller. - mk01 - 1st Dec, 2013 12:21 PM

(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?


RE: Controlling XBMC with a PS3 controller. - woonx - 20th Jun, 2014 08:39 AM

I am also interested in controlling XBMC using a gamepad. Has there been any progress in this matter? Is that option enabled in Gotham?


RE: Controlling XBMC with a PS3 controller. - mk01 - 7th Aug, 2014 06:11 AM

@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.


Controlling XBMC with a PS3 controller. - marxkemp - 24th Aug, 2014 09:12 AM

Love to know how to get retropie working from xbmc (with adv launcher or rcb)


RE: Controlling XBMC with a PS3 controller. - mogger - 6th Sep, 2014 10:11 PM

I got the answer here http://everyday-tech.com/the-complete-guide-to-the-ultraslim-raspberry-pi-image/