Kodi Community Forum
[Appletv2] New Keymap for pictures - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: [Appletv2] New Keymap for pictures (/showthread.php?tid=95007)



[Appletv2] New Keymap for pictures - johny_dogg - 2011-02-22

Does anyone know where I can find a keymap for pictures? I try to view my comics, but on the apple tv 2 remote, up zooms in, down zooms out, left and right turn the pages, but nothing allows mean to scroll. Any help would be appreciated.


- Cyzor - 2011-02-22

Just make it youself.

Code:
<keymap>
  <SlideShow>
    <joystick name="AppleRemote">
      <!-- Up            --> <button id="1"></button>
      <!-- Down          --> <button id="2"></button>
      <!-- Left          --> <button id="3"></button>
      <!-- Right         --> <button id="4"></button>
      <!-- Select        --> <button id="5"></button>
      <!-- Menu          --> <button id="6"></button>
      <!-- Select (long) --> <button id="7"></button>
      <!-- Menu (long)   --> <button id="8"></button>
      <!-- Right (long)  --> <button id="10"></button>
      <!-- Left (long)   --> <button id="11"></button>
      <!-- Play          --> <button id="12"></button>
      <!-- Play (long)   --> <button id="13"></button>
    </joystick>
  </SlideShow>
</keymap>
See the Wiki for the possible actions: http://wiki.xbmc.org/index.php?title=Keymap.xml#Actions

Right/Left long don't (yet) work on the ATV2. Just play until its right for you.

Add the code to: /User/Library/Preferences/XBMC/userdata/keymaps/joystick.AppleRemote.xml
Or create the file if it doesn't exist yet.


- johny_dogg - 2011-02-23

Well it didn't work, probably due to my newbitity. I was trying to make the select button scroll down and the play button scroll up. At first I tried it with the button prefixes you had above, i.e.

<!-- Up --> <button id="1">ZoomIn</button>

That didn't work, so I tried it as such, which also didn't work

<<keymap>
<SlideShow>
<joystick name="AppleRemote">
<button id="1">ZoomIn</button>
<button id="2">ZoomOut</button>
<button id="3">PreviousPicture</button>
<button id="4">NextPicture</button>
<button id="5">ScrollDown</button>
<button id="6">PreviousMenu</button>
<button id="7"></button>
<button id="8"></button>
<button id="10"></button>
<button id="11"></button>
<button id="12">ScrollUp</button>
<button id="13"></button>
</joystick>
</SlideShow>
</keymap>

When I tried to view the comic, up still zoomed in, down zoomed out and the left right turned the pages but that was it, basically still the normal settings.

Any suggestions?


- johny_dogg - 2011-02-24

I tried it again with a couple different actions and still no change. Should I be uploading the code to a different directory?