FiveNinjas / SliceOS

Bug tracking for the Slice OpenELEC implementation
12 stars 7 forks source link

Add "rotate" remote button in photo viewer #32

Open gerv opened 9 years ago

gerv commented 9 years ago

Many cameras these days add EXIF information to allow viewers to correctly orient photos, but this doesn't always work, and some cameras don't. It would be good for a remote button in the Photo Viewer to be bound to "Rotate". I thought perhaps arrow-down and arrow-up might be bound to this, as they currently don't seem to do anything, and it's fairly intuitive?

Gerv

ghollingworth commented 9 years ago

Sounds interesting, I believe the keymapping can be changed based on function (i.e. you can change the keymapping for video playback to be different to photo viewing) If you can find a keymapping change that will do it I should be able to add to the default setup

Gordon

gerv commented 9 years ago

I made this work by installing the addon "Keymap Editor", then remapping the Up and Down buttons to Rotate in the "Slideshow" section. The generated keymap file was as follows:

<keymap>
  <slideshow>
    <keyboard>
      <key id="61569">rotate</key>
      <key id="61568">rotateccw</key>
    </keyboard>
  </slideshow>
</keymap>

Gerv