2010-07-16, 22:56
I don't exactly know how the Playstation 3 style controllers are done on the mapping of the buttons, and pretty much i'm stuck with playstation style gamepads i can't use to control xbmc... here's a list of the gamepads and the beginnings of the keymaps for them along with notes on which key is what.
Alienware Dual Compatible Game Pad:
Interact AxisPad Colors
Gravis GamePad Pro (USB model)
Alienware Dual Compatible Game Pad:
Code:
<keymap>
<global>
<!-- left analog is treated as hat when alien eyes are unlit-->
<!-- right analog is treated as buttons 1 to 4 in a counter -->
<!-- clockwise motion with 1 being on the left when eyes are unlit-->
<joystick name="Alienware Alienware Dual Compatible Game Pad">
<button id="1"></button> <!--square -->
<button id="2">Screenshot</button> <!--x -->
<button id="3">XBMC.ActivateWindow(ShutdownMenu)</button> <!--circle -->
<button id="4">XBMC.ActivateWindow(PlayerControls)</button> <!-- tri -->
<button id="6">Right</button> <!-- l1 -->
<button id="7">Down</button> <!-- l2 -->
<button id="11">PreviousMenu</button> <!-- l3 - left analog -->
<button id="5">Up</button> <!-- r1 -->
<button id="8">Left</button> <!-- r2 -->
<button id="12">PreviousMenu</button> <!-- R3 - right analog -->
<button id="9">Left</button> <!-- select -->
<button id="10">Left</button> <!-- start -->
<!-- Left Analog Left and Right-->
<axis limit="-1" id="0">AnalogSeekBack</axis>
<axis limit="+1" id="0">AnalogSeekForward</axis>
<!-- Left Analog Up and Down-->
<axis limit="+1" id="1">ScrollDown</axis>
<axis limit="-1" id="1">ScrollUp</axis>z`
<!-- Right Analog Up and Down -->
<axis limit="-1" id="2">VolumeUp</axis>
<axis limit="+1" id="2">VolumeDown</axis>
<!-- Left Analog Left and Right-->
<axis limit="-1" id="3"></axis>
<axis limit="+1" id="3"></axis>
<!-- Hat Axises, unused -->
<axis limit="+1" id="4">Right</axis>
<axis limit="-1" id="4">Left</axis>
<axis limit="-1" id="5">Up</axis>
<axis limit="+1" id="5">Down</axis>
<!-- Hat -->
<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>
</keymap>
Interact AxisPad Colors
Code:
<keymap>
<global>
<joystick name="STD AxisPad">
<altname>Interact AxisPad</altname>
<button id="1"></button> <!--square -->
<button id="3">Screenshot</button> <!--x -->
<button id="4">XBMC.ActivateWindow(ShutdownMenu)</button> <!--circle -->
<button id="2">XBMC.ActivateWindow(PlayerControls)</button> <!-- tri -->
<button id="5">Right</button> <!-- l1 -->
<button id="7">Down</button> <!-- l2 -->
<button id="9">PreviousMenu</button> <!-- l3 - left analog -->
<button id="6">Up</button> <!-- r1 -->
<button id="8">Left</button> <!-- r2 -->
<button id="10">PreviousMenu</button> <!-- R3 - right analog -->
<button id="11">Left</button> <!-- select/Escape -->
<button id="12">Left</button> <!-- start/enter -->
<button id="20"></button> <!-- Toggle Switch-->
<!-- Left Analog Left and Right-->
<axis limit="-1" id="0">AnalogSeekBack</axis>
<axis limit="+1" id="0">AnalogSeekForward</axis>
<!-- Left Analog Up and Down-->
<axis limit="-1" id="1">ScrollUp</axis>
<axis limit="+1" id="1">ScrollDown</axis>
<!-- Right Analog Up and Down -->
<axis limit="-1" id="2">VolumeUp</axis>
<axis limit="+1" id="2">VolumeDown</axis>
<!-- Left Analog Left and Right-->
<axis limit="-1" id="3"></axis>
<axis limit="+1" id="3"></axis>
<!-- Hat Axises, unused -->
<axis limit="+1" id="4">Right</axis>
<axis limit="-1" id="4">Left</axis>
<axis limit="-1" id="5">Up</axis>
<axis limit="+1" id="5">Down</axis>
<!-- Hat -->
<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>
</keymap>
Code:
<keymap>
<global>
<joystick name="Gravis GamePad Pro USB">
<button id="1"></button> <!--red/square -->
<button id="3">Screenshot</button> <!--blue/tri -->
<button id="4">XBMC.ActivateWindow(ShutdownMenu)</button> <!--green/circle -->
<button id="2">XBMC.ActivateWindow(PlayerControls)</button> <!-- yellow/X -->
<button id="5">Right</button> <!-- l1 -->
<button id="7">Down</button> <!-- l2 -->
<button id="6">Up</button> <!-- r1 -->
<button id="8">Left</button> <!-- r2 -->
<button id="9">Left</button> <!-- select -->
<button id="10">Left</button> <!-- start -->
<!-- Directional Pad-->
<axis limit="-1" id="0">Left</axis>
<axis limit="+1" id="0">Right</axis>
<axis limit="+1" id="1">Down</axis>
<axis limit="-1" id="1">Up</axis>z`
</joystick>
</keymap>