Kodi Community Forum

Full Version: Some edits in keymaps.xml
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Since the up and down buttons on apple remote dont do anything when im watching a video and have the OSD showing, how do i assign the up key to change the aspect ratio of the video? i went into keymap.xml and inserted the up aspect ratio button as shown below, but it didn't work. i simply want to be able to assign a function to the up and down key on remote when im in osd. any guidance please.

[codebox]<OSDVideoSettings>
<remote>
<back>Close</back>
<menu>Close</menu>
<start>Close</start>
<up>AspectRatio</up>[/codebox]
Edit the one in the user dir.
tried that as suggested in wiki for keymap.xml but no go. is there something wrong with the syntax or the section of file i'm putting it under, i.e. OSDvideosettings?
Looking at my default keyboard.xml it looks like appleremote uses a completely different tags

Code:
<OSDVideoSettings>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

  </OSDVideoSettings>
maybe im on a different version. at this point ive tried adding various combinations in VideoOSD/VideoOSDSettings/Video Menu but no help. i've also tried using the following but no help

<joystick name="Apple Remote">
<button id="1">aspectratio</button>
</joystick>
It may not be available while the OSD is up - I'm not sure.

You probably want it in the VideoOSD window though I should think, rather than the OSDVideoSettings window (which already has the option to toggle the view mode right there in the UI?)

Cheers,
Jonathan
yeah i figured in the end it had to be videoOSD but nothing has worked so far. i have a whole bunch of videos that are 4:3 that i like to watch in 16:9 and soemtimes after so long just a pain to go to osd, video settngs, and then down 5 rows to toggle the mode. i guess i'll keep trying to see what i can figure out and if someone has made this work please let me know. in the meanwhile i'll be grateful for what i have - the dream mediacenter i've always wanted.
Try something that is definitely supported within the OSD
That way you can narrow it down. (Or look in the code Wink )

Code:
<VideoOSD>
    <gamepad>
      <start>Close</start>
      <back>PreviousMenu</back>
      <B>PreviousMenu</B>
      <black>CodecInfo</black>
      <white>Info</white>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Close</button>
      <button id="17">PreviousMenu</button>
      <button id="2">PreviousMenu</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
      <menu>Close</menu>
      <start>Close</start>
    </remote>

    <keyboard>
      <backspace>HideSubMenu</backspace>
      <escape>Close</escape>
      <m>Close</m>
      <i>Info</i>
      <o>CodecInfo</o>
    </keyboard>
  </VideoOSD>
Please post a request ticket on trac - I have some ideas as to how this could be done.

Thanks,
Jonathan
nmirza: As of r16612, you can use this:

Code:
<keymap>
  <VideoOSD>
    <joystick name="Apple Remote">
      <button id="1">Action(AspectRatio,FullscreenVideo)</button>
    </joystick>
  </VideoOSD>
</keymap>
to redirect actions to a particular window.

Cheers,
Jonathan