Kodi Community Forum

Full Version: custom windows in keymap.xml
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Quote: <window1113>
<y>xbmc.runscript(q:\scripts\kaid control pad.py)</y>
</window1113>

thanks
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.



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.
lol - a quick look at the code shows that it's already there Smile
just found it. Smile  

i guess i should have just tried it first.

edit2: works great just like this.

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

thanks



i added the following to the online manual.

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