diff options
author | spiff_ <spiff_@svn> | 2010-07-01 16:52:37 +0000 |
---|---|---|
committer | spiff_ <spiff_@svn> | 2010-07-01 16:52:37 +0000 |
commit | 191d0e5a173d22620970ec4b2626e60f79bc4c6c (patch) | |
tree | 01ca86763f1b8c829309ad4a88041bc14ddafe8c /system | |
parent | 71470c1770d8c0a9289d35106cdb83f1e9625f6f (diff) |
added: keymap for the xbox 360 (wireless) controller. author warns it's somewhat incomplete, but this is better than nothing. thanks to marcus povey. also thanks to x3 for pointing me to the blogpost
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31547 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'system')
-rw-r--r-- | system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml | 391 |
1 files changed, 391 insertions, 0 deletions
diff --git a/system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml b/system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml new file mode 100644 index 0000000000..d313661697 --- /dev/null +++ b/system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml @@ -0,0 +1,391 @@ +<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC --> +<!-- The <global> section is a fall through - they will only be used if the button is not --> +<!-- used in the current window's section. Note that there is only handling --> +<!-- for a single action per button at this stage. --> +<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox --> +<!-- gamepads. --> + +<!-- The format is: --> +<!-- <device> --> +<!-- <button>action</button> --> +<!-- </device> --> + +<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks --> +<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key --> +<!-- You set it up by adding a <universalremote> block to the window or <global> section: --> +<!-- <universalremote> --> +<!-- <obc45>Stop</obc45> --> +<!-- </universalremote> --> +<!-- To find out the OBC's of your remote, try enabling the <displayremotecodes> tag in AdvancedSettings.xml --> + +<!-- Note that the action can be a built-in function. --> +<!-- eg <B>XBMC.ActivateWindow(MyMusic)</B> --> +<!-- would automatically go to My Music on the press of the B button. --> + +<!-- Joysticks / Gamepads: --> +<!-- See the sample PS3 controller configuration below for the format. --> +<!-- --> +<!-- Joystick Name: --> +<!-- Do 'cat /proc/bus/input/devices' or see your xbmc log file to find the names of --> +<!-- detected joysticks. The name used in the configuration should match the detected name. --> +<!-- --> +<!-- Button Ids: --> +<!-- 'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear --> +<!-- in xbmc.log when they are pressed. Use your log to map custom buttons to actions. --> +<!-- --> +<!-- Axis Ids / Analog Controls --> +<!-- Coming soon. --> +<keymap> + <global> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="1">Select</button> <!-- A --> + <button id="2">ParentDir</button> <!-- B --> + <button id="3"></button> <!-- X --> + <button id="4"></button> <!-- Y --> + <button id="5"></button> <!-- LB --> + <button id="6"></button> <!-- RB --> + <button id="7"></button> <!-- ? --> + <button id="8"></button> <!-- ? --> + <button id="9">XBMC.ActivateWindow(PlayerControls)</button> + <button id="10"/> + <button id="11">Up</button> + <button id="12">Down</button> + <button id="13">Left</button> + <button id="14">Right</button> + <button id="15"></button> + <button id="16"></button> + <button id="17">PreviousMenu</button> + <axis limit="-1" id="5">VolumeUp</axis> + <axis limit="+1" id="5">VolumeDown</axis> + <axis limit="-1" id="4">AnalogSeekBack</axis> + <axis limit="+1" id="4">AnalogSeekForward</axis> + <axis limit="0" id="3">ScrollUp</axis> + <axis limit="0" id="6">ScrollDown</axis> + </joystick> + </global> + <Home> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="3">XBMC.Skin.ToggleSetting(HomeViewToggle)</button> + </joystick> + </Home> + <MyFiles> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="5">Highlight</button> + </joystick> + </MyFiles> + <MyMusicPlaylist> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">Playlist</button> + <button id="3">Playlist</button> + <button id="17">Playlist</button> + <button id="5">Delete</button> + </joystick> + </MyMusicPlaylist> + <MyMusicFiles> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="3">Playlist</button> + <button id="5">Queue</button> + </joystick> + </MyMusicFiles> + <MyMusicLibrary> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="3">Playlist</button> + <button id="5">Queue</button> + </joystick> + </MyMusicLibrary> + <FullscreenVideo> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="1">Pause</button> + <button id="2">Stop</button> + <button id="3">CodecInfo</button> + <button id="5">AspectRatio</button> + <button id="6">Info</button> + <button id="9">OSD</button> + <button id="13">BigStepForward</button> + <button id="14">StepForward</button> + <button id="15">BigStepBack</button> + <button id="16">StepBack</button> + <button id="17">SmallStepBack</button> + <axis limit="0" id="3">AnalogRewind</axis> + <axis limit="0" id="6">AnalogFastForward</axis> + </joystick> + </FullscreenVideo> + <FullscreenInfo> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">Close</button> + <button id="3">CodecInfo</button> + <button id="6">Close</button> + <button id="9">OSD</button> + <axis limit="0" id="3">AnalogRewind</axis> + <axis limit="0" id="6">AnalogFastForward</axis> + </joystick> + </FullscreenInfo> + <PlayerControls> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="9">Close</button> + <button id="17">Close</button> + </joystick> + </PlayerControls> + <Visualisation> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="1">Pause</button> + <button id="2">Stop</button> + <button id="3">CodecInfo</button> + <button id="5">XBMC.ActivateWindow(VisualisationPresetList)</button> + <button id="6">Info</button> + <button id="9">XBMC.ActivateWindow(MusicOSD)</button> + <button id="13">NextPreset</button> + <button id="14">SkipNext</button> + <button id="15">PreviousPreset</button> + <button id="16">SkipPrevious</button> + <axis limit="0" id="3">AnalogRewind</axis> + <axis limit="0" id="6">AnalogFastForward</axis> + </joystick> + </Visualisation> + <MusicOSD> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="17">Close</button> + <button id="19">Close</button> + <button id="3">CodecInfo</button> + <button id="6">Info</button> + </joystick> + </MusicOSD> + <VisualisationSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">Close</button> + <button id="3">Close</button> + <button id="9">Close</button> + </joystick> + </VisualisationSettings> + <VisualisationPresetList> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">Close</button> + <button id="3">Close</button> + <button id="5">Close</button> + <button id="9">Close</button> + </joystick> + </VisualisationPresetList> + <SlideShow> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="1">Pause</button> + <button id="2">Stop</button> + <button id="3">CodecInfo</button> + <button id="4">ZoomNormal</button> + <button id="5">Rotate</button> + <button id="6">Info</button> + <button id="13">ZoomIn</button> + <button id="14">NextPicture</button> + <button id="15">ZoomOut</button> + <button id="16">PreviousPicture</button> + <button id="17">Stop</button> + </joystick> + </SlideShow> + <ScreenCalibration> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="1">NextCalibration</button> + <button id="3">ResetCalibration</button> + <button id="6">NextResolution</button> + <button id="2">PreviousMenu</button> + </joystick> + </ScreenCalibration> + <GUICalibration> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="1">NextCalibration</button> + <button id="3">ResetCalibration</button> + <button id="6">NextResolution</button> + <button id="2">PreviousMenu</button> + </joystick> + </GUICalibration> + <SelectDialog> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="17">Close</button> + </joystick> + </SelectDialog> + <VideoOSD> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="9">Close</button> + <button id="17">PreviousMenu</button> + <button id="2">PreviousMenu</button> + </joystick> + </VideoOSD> + <VideoMenu> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="5">AspectRatio</button> + <button id="2">Stop</button> + <button id="9">OSD</button> + <button id="17">PreviousMenu</button> + <button id="6">Info</button> + <button id="3">CodecInfo</button> + </joystick> + </VideoMenu> + <OSDVideoSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="4"/> + <button id="5">AspectRatio</button> + <button id="2">Close</button> + <button id="17">Close</button> + <button id="19">Close</button> + </joystick> + </OSDVideoSettings> + <OSDAudioSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="4"/> + <button id="5">AspectRatio</button> + <button id="2">Close</button> + <button id="17">Close</button> + <button id="19">Close</button> + </joystick> + </OSDAudioSettings> + <VideoBookmarks> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="4"/> + <button id="5">Delete</button> + <button id="2">Close</button> + <button id="17">Close</button> + <button id="19">Close</button> + </joystick> + </VideoBookmarks> + <MyVideoLibrary> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="3">Delete</button> + </joystick> + </MyVideoLibrary> + <MyVideoFiles> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="5">Queue</button> + <button id="3">Playlist</button> + </joystick> + </MyVideoFiles> + <MyVideoPlaylist> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="5">Delete</button> + <button id="3">Playlist</button> + <button id="17">Playlist</button> + <button id="2">Playlist</button> + </joystick> + </MyVideoPlaylist> + <VirtualKeyboard> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="9">Enter</button> + <button id="2">BackSpace</button> + <button id="5">Shift</button> + <button id="4">Symbols</button> + </joystick> + </VirtualKeyboard> + <ContextMenu> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="6">Close</button> + <button id="2">Close</button> + </joystick> + </ContextMenu> + <Scripts> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="3">XBMC.ActivateWindow(ScriptsDebugInfo)</button> + </joystick> + </Scripts> + <NumericInput> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">BackSpace</button> + <button id="9">Enter</button> + </joystick> + </NumericInput> + <GamepadInput> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="9">Stop</button> <!-- Enter Password --> + </joystick> + </GamepadInput> + <Weather> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </Weather> + <Settings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </Settings> + <MyPicturesSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </MyPicturesSettings> + <MyProgramsSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </MyProgramsSettings> + <MyWeatherSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </MyWeatherSettings> + <MyMusicSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </MyMusicSettings> + <SystemSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </SystemSettings> + <MyVideosSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </MyVideosSettings> + <NetworkSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </NetworkSettings> + <AppearanceSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </AppearanceSettings> + <Profiles> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </Profiles> + <systeminfo> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </systeminfo> + <shutdownmenu> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </shutdownmenu> + <submenu> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">PreviousMenu</button> + </joystick> + </submenu> + <MusicInformation> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">Close</button> + </joystick> + </MusicInformation> + <MovieInformation> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="2">Close</button> + </joystick> + </MovieInformation> + <LockSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="9">Close</button> + <button id="2">PreviousMenu</button> + <button id="17">PreviousMenu</button> + </joystick> + </LockSettings> + <ProfileSettings> + <joystick name="Xbox 360 Wireless Receiver"> + <button id="9">Close</button> + <button id="2">PreviousMenu</button> + <button id="17">PreviousMenu</button> + </joystick> + </ProfileSettings> +</keymap> |