custom windows in keymap.xml
#1
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
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
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.



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
Reply
#3
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.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
lol - a quick look at the code shows that it's already there Smile
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
Reply
#5
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



For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
i added the following to the online manual.

Quote:the window can also be a custom window formatted as <windowid#> (e. g. <window1113>).
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#7
thanks Smile
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
Reply

Logout Mark Read Team Forum Stats Members Help
custom windows in keymap.xml0