MP 1.23 Key Mapping (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    13,983
    8,535
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    The dialog that says "1- Current Program" "2 - Manual Stop"
    WINDOW_DIALOG_MENU_BOTTOM_RIGHT = 2015
    Actions close this Dialog (and most other): MediaPortal/MediaPortal-1
    C#:
          if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG ||
              action.wID == Action.ActionType.ACTION_PREVIOUS_MENU ||
              action.wID == Action.ActionType.ACTION_CONTEXT_MENU)
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,983
    8,535
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    In default Keymap.xml i see: MediaPortal/MediaPortal-1
    XML:
        <action>
          <id>10</id>
          <key>esc</key>
          <sound>back.wav</sound>
          <description>Previous Menu</description>
        </action>
    And dont see Action for Backspace ...

    Try to Download default Keymap.xml and simply add this block after ESC block:
    XML:
        <action>
          <id>10</id>
          <key>backspace</key>
          <sound>back.wav</sound>
          <description>Previous Menu</description>
        </action>
     

    macmr

    Portal Pro
    August 21, 2011
    79
    11
    Home Country
    Country flag
    Thanks I will digest what you have said and get back to it in a couple of days. Next time I will post the logs.

    I suggested not touching the ESC key, but touching the Backspace key. Those select Backspace and put the same action as the ESC key.

    From memory there was no "backspace" (or back) key in the HID "full" map. If there is and my memory is wrong I will do as you suggested although I do seem to recall doing something like that before by adding one but it didn't make any difference.

    But! You can try to add an additional action (when backspace pressed) in these windows.
    MiniEPG - Window ID - WINDOW_MINI_GUIDE = 3009 Action like: ACTION_PREVIOUS_MENU
    This Action close MiniEPG - MediaPortal/MediaPortal-1

    I thought that and the other menu id you gave would have been covered by the "No Condition" option in the key mapping.

    In default Keymap.xml i see: MediaPortal/MediaPortal-1
    • <action>
    • <id>10</id>
    • <key>esc</key>
    • <sound>back.wav</sound>
    • <description>Previous Menu</description>
    • </action>
    And dont see Action for Backspace ...

    Try to Download default Keymap.xml and simply add this block after ESC block:
    • <action>
    • <id>10</id>
    • <key>backspace</key>
    • <sound>back.wav</sound>
    • <description>Previous Menu</description>
    • </action>

    I already tried that and it fixes everything BUT that has been my point all along which is why should I have to modify keymap.xml when the "full" HID keymap should be taking control and keymap.xml not being used
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,983
    8,535
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    Thanks I will digest what you have said and get back to it in a couple of days. Next time I will post the logs.
    Not at all, I don’t know how it works, it will suddenly help to solve your problem ...
    HID keymap should be taking control and keymap.xml not being used
    Maybe, but this file is read when the media portal starts, I don’t know how it works later, but if you add this section, then this should not interfere.
     

    macmr

    Portal Pro
    August 21, 2011
    79
    11
    Home Country
    Country flag
    Ok I've spent way too much time on this but for the sake of other users that are having problems and searching for answers here is the final result.

    To clarify this testing has been carried out using MP 1.23 using PureVisionHD Skin and a HID keyboard with MP/Config/Remotes set to HID "full" profile - Enable HID - Use HID keyboard. It only relates to a problem with two Dialogs being able to be closed via HID keycodes. One is the Mini EPG (Window id 3009) and DialogMenuBottomRight (window id 2015). If you are using the "esc" keycode to do this you will not notice any issues. If you are wanting to assign a different key then read on.

    I needed to use the "backspace" key so that is what the testing is based on.

    Options That Work:
    1. Go into keymap.xml (the original one that still sits in the ProgramData/TeamMediaPortal/MediaPortal) with an xml editor (you can't
    do it from inside MP/Config) and add a "backspace" ( not "back") key (or your required key) with the action set the same as the
    "esc" key.
    ALSO
    From within the MP/Config/Remotes section add a "back" key (or your required key) with all the same actions as the "escape" key

    2. OR use the KeyboardInputPlugin if you can get a copy as it's not available under the plugins section anymore. The bottom of post #6 covers that a bit more.

    What Is Illogical:
    Having to modify the keymap.xml file to close those two windows when the HID full profile seems to handle all the other windows

    Log Files attached showing some of the testing
     

    Attachments

    • Keytest.zip
      4.8 KB · Views: 5

    Users who are viewing this thread

    Similar threads

    I've been using version 1.2.2.0 for years and have found no need to upgrade to newer version. I hate it that skins loose compatibility with almost every new version. And new skins are too 'fancy' for my taste. I use a customized version of the default wide skin with only Videos and TV in the main menu. I use mediaportal for recording...
    I've been using version 1.2.2.0 for years and have found no need to upgrade to newer version. I hate it that skins loose...
    I've been using version 1.2.2.0 for years and have found no need to upgrade to newer version. I hate it that skins loose...
    Replies
    0
    Views
    124
    Long time ago I mapped several keys for different applications and they did work all flawless. Now I wanted to add some more mappings and found out that the new ones don't work. I don't know why but the logs are telling me that the key is not mapped. The screenshot below is showing that the "Exit" key is mapped to the keystroke ESC...
    Long time ago I mapped several keys for different applications and they did work all flawless. Now I wanted to add some more...
    Long time ago I mapped several keys for different applications and they did work all flawless. Now I wanted to add some more...
    Replies
    0
    Views
    1K
    i did this change, i hope it's OK MP1-5039: Update SharpLibHID to 1.4.4 & SharpLibWin32 to 0.2.2 + Fix … · MediaPortal/MediaPortal-1@48551bb
    i did this change, i hope it's OK MP1-5039: Update SharpLibHID to 1.4.4 & SharpLibWin32 to 0.2.2 + Fix … ·...
    Dear experts, :) I use a remote control for common playback actions (play/pause, next track, previous track). It works fine but...
    Replies
    16
    Views
    3K
    Hi Invisible I have changed tack a bit since writing this thread. I decided to try and mimic my non genuine Media Player remote and receiver with my already setup Harmony One remote and then pairing with a remapped FLIRC as the receiver. This way I would have a backup control and receiver if either decided to stop working. While I...
    Hi Invisible I have changed tack a bit since writing this thread. I decided to try and mimic my non genuine Media Player remote...
    I have searched online and read the wiki's about the keymappping options but haven't been able to find an answer to this question...
    Replies
    4
    Views
    1K
    Hi all - I upgraded an older MediaPortal 1 install to the 1.23 release. Am using a Microsoft remote (like pictured in the settings) and a Sonos soundbar. On the old MediaPortal version in the MCE remote settings I simply deleted the remote volume up/down mappings so these button presses were ignored by MediaPortal and only controlled...
    Hi all - I upgraded an older MediaPortal 1 install to the 1.23 release. Am using a Microsoft remote (like pictured in the settings)...
    Hi all - I upgraded an older MediaPortal 1 install to the 1.23 release. Am using a Microsoft remote (like pictured in the settings)...
    Replies
    0
    Views
    1K
    Top Bottom