Kodi Community Forum

Full Version: Need help with Amazon Fire TV button map
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I'm just looking to add extra functionality to the AFTV remote by making the 'rewind' button rotate any photos I'm looking at in an anti-clockwise direction, and the 'fast forward' button to rotate them clockwise.

I've set my keyboard.xml up like this:

<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<Home>
<keyboard>
<menu>XBMC.ActivateWindow(Favourites)</menu>
</keyboard>
</Home>
<Pictures>
<keyboard>
<rewind>rotateccw</rewind>
<fastforward>Rotate</fastforward>
</keyboard>
</Pictures>

<FullscreenVideo>
<keyboard>
<backspace>Stop</backspace>
<browser_back>Stop</browser_back>
</keyboard>
</FullscreenVideo>
<VideoMenu>
<keyboard>
<backspace>Stop</backspace>
<browser_back>Stop</browser_back>
</keyboard>
</VideoMenu>
<virtualkeyboard>
<keyboard>
<menu>shift</menu>
<play_pause>Symbols</play_pause>
<rewind>CursorLeft</rewind>
<fastforward>CursorRight</fastforward>
<browser_back>Backspace</browser_back>
</keyboard>
</virtualkeyboard>
<Visualisation>
<keyboard>
<browser_back>Fullscreen</browser_back>
</keyboard>
</Visualisation>
<Favourites>
<keyboard>
<browser_back>close</browser_back>
</keyboard>
</Favourites>
<NumericInput>
<keyboard>
<browser_back>Close</browser_back>
</keyboard>
</NumericInput>
<PVROSDChannels>
<keyboard>
<browser_back>Close</browser_back>
</keyboard>
</PVROSDChannels>
<PVROSDGuide>
<keyboard>
<browser_back>Close</browser_back>
</keyboard>
</PVROSDGuide>
<PVROSDDirector>
<keyboard>
<browser_back>Close</browser_back>
</keyboard>
</PVROSDDirector>
<PVROSDCutter>
<keyboard>
<browser_back>Close</browser_back>
</keyboard>
</PVROSDCutter>
<MyTVSettings>
<keyboard>
<browser_back>PreviousMenu</browser_back>
</keyboard>
</MyTVSettings>
</keymap>

The important bit is in bold.

It isn't working (else I wouldn't be coming on here! Smile ) - can anyone see where I've gone wrong?

Thanks in advance!
Stacy
Here's what I'm using. The bit you're interested in is the Slideshow.

Menu rotates. FF and RW zoom in and out.


Code:
<keymap>

<global>
    <keyboard>
      <menu>FullScreen</menu>
      <rewind>ContextMenu</rewind>
   </keyboard>
</global>

<Slideshow>
  <keyboard>
    <fastforward>ZoomIn</fastforward>
    <rewind>ZoomOut</rewind>
    <menu>Rotate</menu>
  </keyboard>
</Slideshow>

<Home>
  <keyboard>
     <rewind>ActivateWindow(10134)</rewind>
     <fastforward>ActivateWindow(10111)</fastforward>
     <menu>ActivateWindow(10004)</menu>
  </keyboard>
</Home>

<Visualisation>
  <keyboard>
    <rewind>Info</rewind>
   </keyboard>
</Visualisation>

<FullscreenVideo>
    <keyboard>
      <right>seek(21)</right>
      <left>seek(-7)</left>
      <menu>ActivateWindow(10124)</menu>
      <rewind>rewind</rewind>
     <fastforward>mute</fastforward>
    </keyboard>
  </FullscreenVideo>

  </keymap>
Hey Fire,

Thanks for your quick response, mate! I've added your Slideshow bit, and the weird thing is - the Menu button does indeed rotate the picture, so that's great and exactly what I was after, thank you! But the rewind and fast forward buttons do nothing still. Oh well, I have the rotating, and that was what I needed. Smile
Are you using the remote on a Fire TV or on another system, like something Ubuntu/Debian based?
It's working now. Smile It's on a Fire TV