# action in custom keymap not working ?

**URL:** <https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778>\
**Category:** Apps & Creations\
**Created:** [October 26, 2017, 9:54am UTC](https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778 "2017-10-26T09:54:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tstaels](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tstaels/32/5835_2.png) [@tstaels](https://forums.plex.tv/u/tstaels)\
**Post date:** [October 26, 2017, 9:54am UTC](https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778/1 "2017-10-26T09:54:37Z")

</div>

trying to map a button on a Rii mini i25 remote.  
Log when pressing the button :

```
DEBUG: CLinuxInputDevice::KeyEvent: TranslateKey returned XBMCK_UNKNOWN from code(142)

RasPlex:~ # cat .plexht/userdata/keymaps/remote.xml
<keymap>
  <global>
    <keyboard>
      <key id="142">Down</key>
    </keyboard>
  </global>
</keymap>

```

I figured that keymap ought to have worked, but it doesn’t.  
Am I missing something here, or is action broken ?

Thx,  
Tom

---

<div class="post-metadata">

**Author:** ![videotecaCNSU](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/videotecacnsu/32/17514_2.png) [@videotecaCNSU](https://forums.plex.tv/u/videotecaCNSU)\
**Post date:** [October 26, 2017, 2:50pm UTC](https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778/2 "2017-10-26T14:50:26Z")

</div>

Had a similar problem when I wanted to use a wiimote as a controller

Sorry but you are out of luck, if you get “CLinuxInputDevice::KeyEvent: TranslateKey returned XBMCK\_UNKNOWN” you wont be able to map them in any way without editing LinuxInputDevices.cpp and recompiling all rasplex as it isnt detected as a known key

---

<div class="post-metadata">

**Author:** ![tstaels](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tstaels/32/5835_2.png) [@tstaels](https://forums.plex.tv/u/tstaels)\
**Post date:** [October 26, 2017, 2:53pm UTC](https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778/3 "2017-10-26T14:53:29Z")

</div>

that’s what i feared… i figured i would give it a shot asking here.  
A shame.  
Perhaps this should be looked at by a developer? hint…hint

---

<div class="post-metadata">

**Author:** ![videotecaCNSU](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/videotecacnsu/32/17514_2.png) [@videotecaCNSU](https://forums.plex.tv/u/videotecaCNSU)\
**Post date:** [October 26, 2017, 2:55pm UTC](https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778/4 "2017-10-26T14:55:18Z")

</div>

But I guess it would be possible to tail -f the debug log, grep the code of the keys and pass the correct press with xbmc-send to the GUI

---

<div class="post-metadata">

**Author:** ![videotecaCNSU](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/videotecacnsu/32/17514_2.png) [@videotecaCNSU](https://forums.plex.tv/u/videotecaCNSU)\
**Post date:** [October 26, 2017, 3:04pm UTC](https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778/5 "2017-10-26T15:04:18Z")

</div>

From what I understand its an openelec problem, any chance of changing it upstream must be made with them

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:38pm UTC](https://forums.plex.tv/t/action-in-custom-keymap-not-working/211778/6 "2020-01-08T19:38:40Z")

</div>


