Kodi Community Forum
Linux keymap with joystick - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
---- Thread: Linux keymap with joystick (/showthread.php?tid=233443)



keymap with joystick - KaoMac - 2015-07-27

Hello

I'm trying to map my jostick to use it as a remote.
I tried to followed the instruction here : Keymap, but i just can't make it work.

I'm on opensuse 13.2 with kodi 15.0 and my joystick is a SPEEDLINK TORID. (It's recognized by opensuse).

I tried to make a .xml file "speedlink_torid.xml"

But kodi is just not reacting

Code:
<keymap>
  <global>
    <joystick name="SPEEDLINK TORID">
      <!-- A selects. B goes back. X gets context menu. Y goes fullscreen and back. -->
      <button id="1">Select</button>
      <button id="2">Back</button>
      <button id="3">ContextMenu</button>
      <button id="4">FullScreen</button>
      <!--Left Shoulder Queues videos. Right shoulder displays the current queue. -->
      <button id="5">Queue</button>
      <button id="6">Playlist</button>
      <button id="7">PreviousMenu</button>
      <button id="8">ActivateWindow(Home)</button>
      <!-- Left stick click activates the shutdown menu. -->
      <button id="9">ActivateWindow(ShutdownMenu)</button>
      <button id="10">ActivateWindow(PlayerControls)</button>
      <button id="11">Up</button>
      <button id="12">Down</button>
      <button id="13">Left</button>
      <button id="14">Right</button>
      <button id="15">PreviousMenu</button>
      <axis id="1" limit="-1">AnalogSeekBack</axis>
      <axis id="1" limit="+1">AnalogSeekForward</axis>
      <axis id="2" limit="-1">AnalogSeekForward</axis>
      <axis id="2" limit="+1">AnalogSeekBack</axis>
      <axis id="3" trigger="true" limit="+1">ScrollUp</axis>
      <axis id="3" trigger="true" limit="-1">ScrollDown</axis>
      <!-- Push up on the right stick for volueme up. Push down for volume down. -->
      <axis id="5" limit="-1">VolumeUp</axis>
      <axis id="5" limit="+1">VolumeDown</axis>
      <axis id="4" limit="-1">VolumeDown</axis>
      <axis id="4" limit="+1">VolumeUp</axis>
      <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>
    <joystick name="SPEEDLINK TORID">
      <button id="1">Select</button>
      <button id="2">Back</button>
      <button id="3">ContextMenu</button>
      <button id="4">FullScreen</button>
      <button id="5">Queue</button>
      <button id="6">Playlist</button>
      <button id="7">PreviousMenu</button>
      <button id="8">ActivateWindow(Home)</button>
      <button id="9">ActivateWindow(Home)</button>
      <button id="10">ActivateWindow(ShutdownMenu)</button>
      <button id="11">ActivateWindow(PlayerControls)</button>
      <button id="12">Left</button>
      <button id="13">Right</button>
      <button id="14">Up</button>
      <button id="15">Down</button>
      <axis id="1" limit="-1">AnalogSeekBack</axis>
      <axis id="1" limit="+1">AnalogSeekForward</axis>
      <axis id="2" limit="-1">AnalogSeekForward</axis>
      <axis id="2" limit="+1">AnalogSeekBack</axis>
      <axis id="3" trigger="true" rest="-32768">ScrollUp</axis>
      <axis id="4" limit="-1">VolumeDown</axis>
      <axis id="4" limit="+1">VolumeUp</axis>
      <axis id="5" limit="-1">VolumeUp</axis>
      <axis id="5" limit="+1">VolumeDown</axis>
      <axis id="6" trigger="true" rest="-32768">ScrollDown</axis>
      <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>
  <Home>
    <joystick name="SPEEDLINK TORID">
      <button id="8">Skin.ToggleSetting(HomeViewToggle)</button>
    </joystick>
  </Home>
  <MyFiles>
    <joystick name="SPEEDLINK TORID">
      <button id="6">Highlight</button>
    </joystick>
  </MyFiles>
  <MyMusicPlaylist>
    <joystick name="SPEEDLINK TORID">
      <button id="5">Delete</button>
    </joystick>
  </MyMusicPlaylist>
  <MyMusicFiles>
  </MyMusicFiles>
  <MyMusicLibrary>
  </MyMusicLibrary>
  <FullscreenVideo>
    <joystick name="SPEEDLINK TORID">
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">OSD</button>
      <button id="5">AspectRatio</button>
      <button id="6">ShowSubtitles</button>
      <button id="7">Seek(-7)</button><!-- Replaces smallstepback -->
      <button id="8">Info</button>
      <button id="9">ActivateWindow(Home)</button>  <!-- guide -->
      <button id="10">ActivateWindow(ShutdownMenu)</button>  <!-- left stick -->
      <button id="11">AudioNextLanguage</button>  <!-- right stick -->
      <button id="12">StepBack</button>
      <button id="13">StepForward</button>
      <button id="14">ChapterOrBigStepForward</button>
      <button id="15">ChapterOrBigStepBack</button>
      <axis id="3">AnalogRewind</axis>
      <axis id="6">AnalogFastForward</axis>
      <hat id="1" position="up">ChapterOrBigStepForward</hat>
      <hat id="1" position="down">ChapterOrBigStepBack</hat>
      <hat id="1" position="left">StepBack</hat>
      <hat id="1" position="right">StepForward</hat>
    </joystick>
  </FullscreenVideo>
  <FullscreenLiveTV>
    <joystick name="SPEEDLINK TORID">
      <button id="12">StepBack</button>
      <button id="13">StepForward</button>
      <button id="14">ChannelUp</button>
      <button id="15">ChannelDown</button>
      <hat id="1" position="up">ChannelUp</hat>
      <hat id="1" position="down">ChannelDown</hat>
      <hat id="1" position="left">StepBack</hat>
      <hat id="1" position="right">StepForward</hat>
    </joystick>
  </FullscreenLiveTV>
  <FullscreenRadio>
    <joystick name="SPEEDLINK TORID">
      <button id="12">StepBack</button>
      <button id="13">StepForward</button>
      <button id="14">ChannelUp</button>
      <button id="15">ChannelDown</button>
      <hat id="1" position="up">ChannelUp</hat>
      <hat id="1" position="down">ChannelDown</hat>
      <hat id="1" position="left">StepBack</hat>
      <hat id="1" position="right">StepForward</hat>
    </joystick>
  </FullscreenRadio>
  <FullscreenInfo>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
      <button id="3">OSD</button>
      <button id="8">Close</button>
      <axis id="3">AnalogRewind</axis>
      <axis id="6">AnalogFastForward</axis>
    </joystick>
  </FullscreenInfo>
  <PlayerControls>
    <joystick name="SPEEDLINK TORID">
      <button id="3">Close</button>
      <button id="10">Close</button>
      <button id="11">Close</button>
    </joystick>
  </PlayerControls>
  <Visualisation>
    <joystick name="SPEEDLINK TORID">
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">ActivateWindow(MusicOSD)</button>
      <button id="5">ActivateWindow(VisualisationPresetList)</button>
      <button id="6">Info</button>
      <button id="11">ActivateWindow(MusicOSD)</button>
      <button id="12">PreviousPreset</button>
      <button id="13">NextPreset</button>
      <button id="14">SkipPrevious</button>
      <button id="15">SkipNext</button>
      <axis id="3">AnalogRewind</axis>
      <axis id="6">AnalogFastForward</axis>
      <hat id="1" position="up">SkipNext</hat>
      <hat id="1" position="down">SkipPrevious</hat>
      <hat id="1" position="left">PreviousPreset</hat>
      <hat id="1" position="right">NextPreset</hat>
    </joystick>
  </Visualisation>
  <MusicOSD>
    <joystick name="SPEEDLINK TORID">
      <button id="3">Close</button>
      <button id="6">Info</button>
    </joystick>
  </MusicOSD>
  <VisualisationSettings>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
    </joystick>
  </VisualisationSettings>
  <VisualisationPresetList>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
    </joystick>
  </VisualisationPresetList>
  <SlideShow>
    <joystick name="SPEEDLINK TORID">
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="4">ZoomNormal</button>
      <button id="5">Rotate</button>
      <button id="6">CodecInfo</button>
      <button id="12">PreviousPicture</button>
      <button id="13">NextPicture</button>
      <button id="14">ZoomIn</button>
      <button id="15">ZoomOut</button>
      <axis id="1">AnalogMoveX</axis>
      <axis id="2">AnalogMoveY</axis>
      <axis id="3">ZoomOut</axis>
      <axis id="6">ZoomIn</axis>
      <hat id="1" position="up">ZoomIn</hat>
      <hat id="1" position="down">ZoomOut</hat>
      <hat id="1" position="left">PreviousPicture</hat>
      <hat id="1" position="right">NextPicture</hat>
    </joystick>
  </SlideShow>
  <ScreenCalibration>
    <joystick name="SPEEDLINK TORID">
      <button id="3">ResetCalibration</button>
      <button id="5">NextResolution</button>
      <button id="6">NextCalibration</button>
    </joystick>
  </ScreenCalibration>
  <GUICalibration>
    <joystick name="SPEEDLINK TORID">
      <button id="3">ResetCalibration</button>
      <button id="5">NextResolution</button>
      <button id="6">NextCalibration</button>
    </joystick>
  </GUICalibration>
  <VideoOSD>
    <joystick name="SPEEDLINK TORID">
      <button id="3">Close</button>
    </joystick>
  </VideoOSD>
  <VideoMenu>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Stop</button>
      <button id="3">OSD</button>
      <button id="5">AspectRatio</button>
      <button id="8">Info</button>
    </joystick>
  </VideoMenu>
  <OSDVideoSettings>
    <joystick name="SPEEDLINK TORID">
      <button id="5">AspectRatio</button>
      <button id="3">Close</button>
    </joystick>
  </OSDVideoSettings>
  <OSDAudioSettings>
    <joystick name="SPEEDLINK TORID">
      <button id="5">AspectRatio</button>
      <button id="3">Close</button>
    </joystick>
  </OSDAudioSettings>
  <VideoBookmarks>
    <joystick name="SPEEDLINK TORID">
      <button id="5">Delete</button>
    </joystick>
  </VideoBookmarks>
  <MyVideoLibrary>
  </MyVideoLibrary>
  <MyVideoFiles>
  </MyVideoFiles>
  <MyVideoPlaylist>
    <joystick name="SPEEDLINK TORID">
      <button id="5">Delete</button>
    </joystick>
  </MyVideoPlaylist>
  <VirtualKeyboard>
    <joystick name="SPEEDLINK TORID">
      <button id="2">BackSpace</button>
      <button id="4">Symbols</button>
      <button id="5">Shift</button>
      <button id="10">Enter</button>
      <axis id="3">CursorLeft</axis>
      <axis id="6">CursorRight</axis>
    </joystick>
  </VirtualKeyboard>
  <ContextMenu>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
      <button id="3">Close</button>
    </joystick>
  </ContextMenu>
  <Scripts>
    <joystick name="SPEEDLINK TORID">
      <button id="3">Info</button>
    </joystick>
  </Scripts>
  <Settings>
    <joystick name="SPEEDLINK TORID">
      <button id="2">PreviousMenu</button>
    </joystick>
  </Settings>
  <AddonInformation>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
    </joystick>
  </AddonInformation>
  <AddonSettings>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
    </joystick>
  </AddonSettings>
  <TextViewer>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
    </joystick>
  </TextViewer>
  <shutdownmenu>
    <joystick name="SPEEDLINK TORID">
      <button id="2">PreviousMenu</button>
      <button id="10">PreviousMenu</button>
    </joystick>
  </shutdownmenu>
  <submenu>
    <joystick name="SPEEDLINK TORID">
      <button id="2">PreviousMenu</button>
    </joystick>
  </submenu>
  <MusicInformation>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
    </joystick>
  </MusicInformation>
  <MovieInformation>
    <joystick name="SPEEDLINK TORID">
      <button id="2">Close</button>
    </joystick>
  </MovieInformation>
  <NumericInput>
    <joystick name="SPEEDLINK TORID">
      <button id="2">BackSpace</button>
      <button id="10">Enter</button>
    </joystick>
  </NumericInput>
  <GamepadInput>
    <joystick name="SPEEDLINK TORID">
      <button id="11">Stop</button>
    </joystick>
  </GamepadInput>
  <LockSettings>
    <joystick name="SPEEDLINK TORID">
      <button id="2">PreviousMenu</button>
      <button id="11">Close</button>
    </joystick>
  </LockSettings>
  <ProfileSettings>
    <joystick name="SPEEDLINK TORID">
      <button id="2">PreviousMenu</button>
      <button id="11">Close</button>
    </joystick>
  </ProfileSettings>
</keymap>



RE: keymap with joystick - KaoMac - 2015-07-28

up


This forum uses Lukasz Tkacz MyBB addons.