Remapping keys / Harmony, PS3 adaptor
#1
Photo 
Hi,
I'm new to all this (Pi, Kodi, Libreelec, Linux in general ), so excuse my ignorance please,

I'm trying to 'bind' some 'hotkeys' to adjust the Zoom + & Zoom - ( when playing TV / Video's )
I'm trying to use my Harmony one remote (IR) with my Logitech Harmony Adapter for PlayStation 3 device (blue tooth) to my Pi, but having issues,
so I did some testing using this code for a keyboard which works

Userdata\keymaps\keyboard.xml
Code:
<keymap>
  <FullscreenVideo>
    <keyboard>
      <plus>ZoomIn</plus>
      <minus>ZoomOut</minus>
    </keyboard>
  </FullscreenVideo>
</keymap>

But if I do this for the "remote" it does not work,
Code:
<lircmap>
  <remote device="devinput">
     <myZoomIn>KEY_FRAMEFORWARD</myZoomIn>
     <myZoomOut>KEY_FRAMEBACK</myZoomOut>
   </remote>
</lircmap>
<keymap>
  <FullscreenVideo>
    <remote>
      <myZoomIn>ZoomIn</myZoomIn>
      <myZoomOut>ZoomOut</myZoomOut>
    </remote>
  </FullscreenVideo>
</keymap>


this is the data for the keys I’m using ,


##############################################
# LibreELEC #
# https://libreelec.tv #
##############################################

LibreELEC (official): 8.1.1 (RPi2.arm)
MyPi:~ # irw

1b5 0 KEY_FRAMEFORWARD devinput
1b4 0 KEY_FRAMEBACK devinput



this is what the adapter looks like,

http://www.ebay.com.au/itm/Logitech-Harm...SwnVVZo340

ps everything else works with the Harmony remote, except what I’m trying to ‘bind’

any ideas where i'm going wrong ?

Thanks for any help,

Nigel
Reply
#2
Have a look at the Add-on:Keymap_Editor (wiki) add-on in the built-in wiki and see if that helps you.

It makes setting up custom keymaps somewhat easier than writing the xml directly.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
IIRC, when using the "devinput" device driver with lirc, as opposed to the "default", the keys are sent as regular keyboard inputs. Therefore, your modifications to your keymap.xml should be in a <keyboard> element, not a <remote> element. Give that a try instead.
Reply

Logout Mark Read Team Forum Stats Members Help
Remapping keys / Harmony, PS3 adaptor0