2012-04-29, 16:22
I'm using xbmc version 12 alpha on the Raspberry Pi
I'm using a wireless ps2 controller to try and control it. I've made a joystick.twin.usb.controller.xml file and placed it in ~/.xbmc/userdata/keymaps
Here's the contents of the file
<keymap>
<global>
<joystick name="Twin USB Joystick">
<button id="1">Select</button> <!–Triangle–>
<button id="2">ParentDir</button> <!–Circle–>
<button id="3">PreviousMenu</button> <!–Cross–>
<button id="4">ParentDir</button> <!–Square–>
<button id="5">VolumeDown</button> <!–L2–>
<button id="6">VolumeUp</button> <!–R2–>
<button id="7">SkipPrevious</button> <!–L1–>
<button id="8">SkipNext</button> <!–R1–>
<button id="9">ShowSubtitles</button> <!–Select–>
<button id="10">ODS</button> <!–Start–>
<button id="11"></button> <!–Left Stick Button–>
<button id="12">OSD</button> <!–Right Stick Button–>
<axis id="1" limit="+1"></axis> <!–left–>
<axis id="1" limit="-1"></axis> <!–right–>
<axis id="2" limit="+1"></axis> <!–down–>
<axis id="2" limit="-1"></axis> <!–up–>
<!–<hat id="1" position="left">Left</hat>–>
<!–<hat id="1" position="right">Right</hat>–>
<!–<hat id="1" position="up">Up</hat>–>
<!–<hat id="1" position="down">Down</hat>–>
</joystick>
</global>
<Home>
<joystick name="Twin USB Joystick">
<button id="3">XBMC.Skin.ToggleSetting(HomeViewToggle)</button>
</joystick>
</Home>
<FullscreenVideo>
<joystick name="Twin USB Joystick">
<button id="1">Pause</button>
<button id="2">Info</button>
<button id="3">Stop</button>
<button id="12">OSD</button>
<hat id="1" position="up">BigStepForward</hat>
<hat id="1" position="right">StepForward</hat>
<hat id="1" position="down">BigStepBack</hat>
<hat id="1" position="left">StepBack</hat>
<axis limit="0" id="3">AnalogRewind</axis>
<axis limit="0" id="6">AnalogFastForward</axis>
</joystick>
</FullscreenVideo>
<PlayerControls>
<joystick name="Twin USB Joystick">
<button id="4">Close</button>
</joystick>
</PlayerControls>
<Visualisation>
<joystick name="Dual USB Vibration Joystick">
<button id="2">Info</button> <!–circle–>
<button id="1">Pause</button> <!–triangle–>
<button id="3">Stop</button> <!–cross–>
</joystick>
</Visualisation>
</keymap>
For some reason it gets completely ignored. Hitting a dpad button will make the cursor move a couple pixels in the correct direction, but I can not make any selection. Anyone have any idea why it's ignoring my key map? I know there was some issue with ps2 d-pad not being represented correctly and allegedly the fix is the "jhat" hack but even aside from that I should be able to select what is highlighted with this code and control video play back, but it's *completely* ignored (side note, I've gone over every thread in here talking about the jhat hack and frankly I just don't get what you're supposed to do at all I'm not sure if I'm doing it right and it's being ignored or if I'm messing up and it's not working so if someone wants to do a good explanation of it I'd be very appreciative
I'm using a wireless ps2 controller to try and control it. I've made a joystick.twin.usb.controller.xml file and placed it in ~/.xbmc/userdata/keymaps
Here's the contents of the file
<keymap>
<global>
<joystick name="Twin USB Joystick">
<button id="1">Select</button> <!–Triangle–>
<button id="2">ParentDir</button> <!–Circle–>
<button id="3">PreviousMenu</button> <!–Cross–>
<button id="4">ParentDir</button> <!–Square–>
<button id="5">VolumeDown</button> <!–L2–>
<button id="6">VolumeUp</button> <!–R2–>
<button id="7">SkipPrevious</button> <!–L1–>
<button id="8">SkipNext</button> <!–R1–>
<button id="9">ShowSubtitles</button> <!–Select–>
<button id="10">ODS</button> <!–Start–>
<button id="11"></button> <!–Left Stick Button–>
<button id="12">OSD</button> <!–Right Stick Button–>
<axis id="1" limit="+1"></axis> <!–left–>
<axis id="1" limit="-1"></axis> <!–right–>
<axis id="2" limit="+1"></axis> <!–down–>
<axis id="2" limit="-1"></axis> <!–up–>
<!–<hat id="1" position="left">Left</hat>–>
<!–<hat id="1" position="right">Right</hat>–>
<!–<hat id="1" position="up">Up</hat>–>
<!–<hat id="1" position="down">Down</hat>–>
</joystick>
</global>
<Home>
<joystick name="Twin USB Joystick">
<button id="3">XBMC.Skin.ToggleSetting(HomeViewToggle)</button>
</joystick>
</Home>
<FullscreenVideo>
<joystick name="Twin USB Joystick">
<button id="1">Pause</button>
<button id="2">Info</button>
<button id="3">Stop</button>
<button id="12">OSD</button>
<hat id="1" position="up">BigStepForward</hat>
<hat id="1" position="right">StepForward</hat>
<hat id="1" position="down">BigStepBack</hat>
<hat id="1" position="left">StepBack</hat>
<axis limit="0" id="3">AnalogRewind</axis>
<axis limit="0" id="6">AnalogFastForward</axis>
</joystick>
</FullscreenVideo>
<PlayerControls>
<joystick name="Twin USB Joystick">
<button id="4">Close</button>
</joystick>
</PlayerControls>
<Visualisation>
<joystick name="Dual USB Vibration Joystick">
<button id="2">Info</button> <!–circle–>
<button id="1">Pause</button> <!–triangle–>
<button id="3">Stop</button> <!–cross–>
</joystick>
</Visualisation>
</keymap>
For some reason it gets completely ignored. Hitting a dpad button will make the cursor move a couple pixels in the correct direction, but I can not make any selection. Anyone have any idea why it's ignoring my key map? I know there was some issue with ps2 d-pad not being represented correctly and allegedly the fix is the "jhat" hack but even aside from that I should be able to select what is highlighted with this code and control video play back, but it's *completely* ignored (side note, I've gone over every thread in here talking about the jhat hack and frankly I just don't get what you're supposed to do at all I'm not sure if I'm doing it right and it's being ignored or if I'm messing up and it's not working so if someone wants to do a good explanation of it I'd be very appreciative