PDA

View Full Version : Some edits in keymaps.xml


nmirza
2008-12-15, 19:07
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.

<OSDVideoSettings>
<remote>
<back>Close</back>
<menu>Close</menu>
<start>Close</start>
<up>AspectRatio</up>

sho
2008-12-15, 21:53
Edit the one in the user dir.

nmirza
2008-12-15, 22:01
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?

sho
2008-12-15, 23:16
Looking at my default keyboard.xml it looks like appleremote uses a completely different tags


<OSDVideoSettings>

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

</OSDVideoSettings>

nmirza
2008-12-16, 01:37
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>

jmarshall
2008-12-16, 02:12
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

nmirza
2008-12-16, 06:12
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.

sho
2008-12-16, 11:56
Try something that is definitely supported within the OSD
That way you can narrow it down. (Or look in the 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>

jmarshall
2008-12-16, 23:32
Please post a request ticket on trac - I have some ideas as to how this could be done.

Thanks,
Jonathan

jmarshall
2008-12-19, 00:16
nmirza: As of r16612, you can use this:


<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