Kodi Community Forum

Full Version: Binding Irregular Keys?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am currently attempting to write a keyboard binding for my Amazon Fire TV. The fast forward and rewind buttons are bound to ᶉ and œ respectively. However, if I attempt something such as:

<œ>Queue</œ>
<ᶉ>Fullscreen</ᶉ>

Both keys will perform the fullscreen action instead of individual actions.

Am I missing something here?
What does your keyboard.xml file look like?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
  <FullscreenVideo>
    <keyboard>
      <menu>ShowSubtitles</menu>
      <backspace>Stop</backspace>
      <œ>SmallSkipBack</œ>
      <ᶉ>Fullscreen</ᶉ>
    </keyboard>
  </FullscreenVideo>
  <global>
    <keyboard>      
      <œ>Queue</œ>
      <ᶉ>FullScreen</ᶉ>
    </keyboard>
  </global>
</keymap>
This is just a guess, but I'm thinking that when the keypresses are passed to XBMC, they appear as just one kind of "unidentified" key. I think there's a file we can modify in Android to fix this, but off hand I'm not sure which one.
Yeah, modifying the keymaps would totally work. However without root, I cannot modify those files yet, so I'm left without a solution.

Through a bit of work I've found that the keycodes for the buttons are 89 and 90 but binding with <key id="89">FullScreen</key> produces no results.
(2014-04-10, 05:37)tomatosoup Wrote: [ -> ]
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
  <FullscreenVideo>
    <keyboard>
      <menu>ShowSubtitles</menu>
      <backspace>Stop</backspace>
      <œ>[b]SmallSkipBack[/b]</œ>
      <ᶉ>Fullscreen</ᶉ>
    </keyboard>
  </FullscreenVideo>
  <global>
    <keyboard>      
      <œ>Queue</œ>
      <ᶉ>FullScreen</ᶉ>
    </keyboard>
  </global>
</keymap>

I don't think there's such action ID as smallskipback.
(Not that this will solve your problem though).
Yeah, I meant to do SmallStepBack