Some edits in keymaps.xml

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nmirza Offline
Senior Member
Posts: 291
Joined: Mar 2008
Reputation: 0
Post: #1
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]
(This post was last modified: 2008-12-15 21:53 by nmirza.)
find quote
sho Offline
Team-XBMC Member
Posts: 4,133
Joined: May 2004
Reputation: 3
Post: #2
Edit the one in the user dir.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
nmirza Offline
Senior Member
Posts: 291
Joined: Mar 2008
Reputation: 0
Post: #3
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?
find quote
sho Offline
Team-XBMC Member
Posts: 4,133
Joined: May 2004
Reputation: 3
Post: #4
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>

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
nmirza Offline
Senior Member
Posts: 291
Joined: Mar 2008
Reputation: 0
Post: #5
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>
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #6
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
nmirza Offline
Senior Member
Posts: 291
Joined: Mar 2008
Reputation: 0
Post: #7
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.
find quote
sho Offline
Team-XBMC Member
Posts: 4,133
Joined: May 2004
Reputation: 3
Post: #8
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>

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #9
Please post a request ticket on trac - I have some ideas as to how this could be done.

Thanks,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #10
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote