PDA

View Full Version : custom windows in keymap.xml


Nuka1195
2006-06-07, 08:18
would there be a way to add a custom window to keymap.xml. if there is i missed it in the manual.

the following is what i was thinking. the 1113 is obviously the windows id.
<window1113>
<y>xbmc.runscript(q:\scripts\kaid control pad.py)</y>
</window1113>

thanks

jmarshall
2006-06-07, 08:45
seems like something that'd be easy enough - but have you just tried <1113> ? not sure if number only tags are ok in xml or not - if they're not, then we'll have to prefix it (i suspect they're not)

edit: yeah, they're not (otherwise it would have worked fine i think).

i think just adding support for "window##" -> "##" to the button translator will do the trick.

Nuka1195
2006-06-07, 08:54
yes, you mentioned back when obc codes were being introduced that just numbers wouldn't work.

i think it could be real usefull for the new mc360 skin.

i've looked at buttontranslator.cpp. if you think it would be something simple and you don't have time i could look at it.

jmarshall
2006-06-07, 09:15
lol - a quick look at the code shows that it's already there :)

Nuka1195
2006-06-07, 09:17
just found it. :) *

i guess i should have just tried it first.

edit2: works great just like this.

*<window1113> *
* *<gamepad>
* * *<y>xbmc.runscript(q:\scripts\kaid control pad.py)</y>
* *</gamepad>
*</window1113>

thanks

Nuka1195
2006-06-07, 17:11
i added the following to the online manual.

the window can also be a custom window formatted as <windowid#> (e. g. <window1113>).

jmarshall
2006-06-08, 00:50
thanks :)