Remote Keymap?
#1
I have never had any luck getting joysticks to work in XBMC, but I just got this USB remote, a IR ps3 remote. So I really want to get it to\ work. I have tried all kinds of things to get it to work in XBMC, with no luck. XBMC always boots with "NOTICE: No Joystick name specified, loading default map". Can someone help me figger this out? I am at a total loss, and it is driving me crazy.

xbmc --version

Code:
XBMC Media Center 13.2 Git:Unknown

joystick.PS3.xml
Code:
<keymap>
  <global>
    <joystick name="PS3 Controller">
      <altname>PS3 Controller</altname>
      <button id="15">Select</button>
      <button id="14">Back</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>

OS : Arch Linux
uname -a
Code:
Linux ApireArch 3.17.3-2-ck #1 SMP PREEMPT Fri Nov 14 19:57:25 EST 2014 x86_64 GNU/Linux


lsusb | grep Play
Code:
Bus 002 Device 005: ID 1d57:af01 Xenta AUVIO Universal Remote Receiver for PlayStation 3

cat /proc/bus/input/devices

Code:
I: Bus=0003 Vendor=1d57 Product=af01 Version=0111
N: Name="PS3 Controller"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/0003:1D57:AF01.0007/input/input27
U: Uniq=
H: Handlers=event10 js1
B: PROP=0
B: EV=1b
B: KEY=1fff000000000000 0 0 0 0
B: ABS=30027
B: MSC=10


dmesg
Code:
[ 8715.953227] usb 2-2: USB disconnect, device number 6
[ 8718.870099] usb 2-1: new full-speed USB device number 7 using uhci_hcd
[ 8719.428306] input: PS3 Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/0003:1D57:AF01.0009/input/input29
[ 8719.428745] hid-generic 0003:1D57:AF01.0009: input,hidraw0: USB HID v1.11 Gamepad [PS3 Controller] on usb-0000:00:1d.0-1/input0
Reply
#2
This took entirely way to long to figger out (granted, an F it hour of playing a game). However I was, thanks in no small part to jstest-gtk. It works pretty good, considering I only paid $3.50 for it (Kmart going out of business sell). For anyone else who has a ALPHALINE Wireless Remote for PS3 and finds this, or someone wants one (Amazon has them cheapish), here is my joystick.Alphaline.xml

Code:
<keymap>
  <global>
    <joystick name="Sony PLAYSTATION(R)3 Controller">
      <altname>PLAYSTATION(R)3 Controller</altname>
      <altname>PS3 Controller</altname>
      <altname>Sony Computer Entertainment Wireless Controller</altname>
      <button id="1">ContextMenu</button>
      <button id="2">Select</button>
      <button id="3">Stop</button>
      <button id="4">Info</button>
      <button id="5">SkipPrevious</button>
      <button id="6">SkipNext</button>
      <button id="7">StepBack</button>
      <button id="8">StepForward</button>
      <button id="9">OSD</button>
      <button id="13">XBMC.ActivateWindow(Home)</button>
      <hat id="1" position="up">Up</hat>
      <hat id="1" position="down">Down</hat>
      <hat id="1" position="left">Left</hat>
      <hat id="1" position="right">Right</hat>
    </joystick>
  </global>
</keymap>

Going to go back tomorrow and grab a few more now. Will do good for a Pi remote, as well as for my Ouya.
Reply
#3
Hey, @theredbaron, you're a genius and a timesaver. I too bought the Alphaline PS3 remote (for $8 I believe) at our Kmart that was going out of business.

Because I've gone to Helix on the Ouya, I had to move the file to /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/keymaps/ instead. But I restarted Kodi and the replacement keymap held.

Thanks!!!
Reply
#4
Glad to be of help. Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Remote Keymap?0