[Finished] [MP1-4795] Add keyboard support to HID handler (1 Viewer)

Stéphane Lenclud

Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    See JIRA ticket.
    See Dev Team forum post.
    Test installer.

    To test those changes you need to go into MP1 configuration in "Remote and Input Devices" section select the HID tab:
    • Enable "Use HID Keyboard".
    • Select "full" HID profile.

    Configuration screenshots:

    upload_2016-6-29_16-8-54.png upload_2016-6-29_15-55-18.png upload_2016-6-29_15-48-40.png upload_2016-6-29_15-54-25.png

    Corresponding HID Demo screenshot:

    upload_2016-5-5_20-54-41.png
     
    Last edited:

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    @Developers @Testers
    If you guys fancy testing the installer linked above you can do so.
    Though admittedly it has only some of the basic shortcuts mapped.
    So feel free to wait a bit until the whole thing is more mature.
     

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    I'm busy porting keymap.xml to hid.full.xml.
    So I'm going through each our shortcuts in keymap.xml.
    Does anyone knows why we need both global and fullscreen shortcuts for things like: pause, stop, fastforward, rewind?
     

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    Is anyone using our picture slide show?
    For some weird reason Enter is mapped to pause/continue instead of Space.
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    Does anyone knows why we need both global and fullscreen shortcuts for things like: pause, stop, fastforward, rewind?
    The only difference I can see is the sound. For example, global pause is assigned "click.wav", whereas the fullscreen video and fullscreen TV pause shortcuts do not have a sound. I'm not sure if that is intentional or desired behaviour...
     

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    There is new version of the installer which is ready for testing.
    @Developers @Testers and especially people who usually use their keyboard to control MP please install that version and provide some feedback.
    In that version the old keyboard handler has been disabled and all keyboard handling is now done through HID.
    The final version should have an option to enable the old keyboard handler but the current one does not.
    As it is it could be that text input in search field could be broken.
    You need to set your HID profile to full.

    upload_2016-5-16_17-16-50.png


    upload_2016-5-16_17-15-11.png
     

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Nice work!

    Just tested but for some reason I can't create a new mapping in any of the sections, it will go out of focus but not getting the option to create a new one.
    With the current setup I usually mapped a few new keys to teletext buttons as the Flirc can't send colors (only keys) :)

    key_new.png
     
    Last edited:

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    Nice work!
    I like it too :) been wanting to go that way from the time I first started work on HID so it's nice to see things coming together.

    Just tested but for some reason I can't create a new mapping in any of the sections, it will go out of focus but not getting the option to create a new one.
    You can't add new keys from the UI. I won't be adding this functionality as part of those changes. Though at some point I most likely will. What I should do for now is add "all" keyboard keys to the XML file, even those without mapping so that actions can be added to them through the UI.
    You could yourself add keys in your XML file if you want to. The button code for keyboard belongs to the Keys Enumeration.
    Through the XML file you can also define modifiers like shift and control:
    XML:
        <!-- TGB - Switch home -->
        <button code="H" shift="false" alt="false" win="false" ctrl="false">
          <action layer="0" condition="*" conproperty="-1" command="ACTION" cmdproperty="115" sound="click.wav"/>
        </button>
    With the current setup I usually mapped a few new keys to teletext buttons as the Flirc can't send colors (only keys) :)
    The default teletext buttons are mapped as follow in MP:
    Q = Red
    W = Green
    O = Yellow
    P = Blue
     

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    There might be some exceptions with international keyboards (special keys / language specific) but not sure if those can automatically be added as that would make it a very long list in the XML and UI :)
     
    Last edited:

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    There might be some exceptions with international keyboards (special keys / language specific) but not sure if those can automatically be added as that would make it a very long list in the XML and UI :)
    Unless we are talking about full Chinese keyboard (no idea how those would behave) most should be part of that enumeration already, look for the OEM codes notably.
    If the code is not in the enumeration one should be able to use its value rather than its name in the XML and the system should still be able to handle it.

    One can use HID Demo to find out which code your keyboard sends for each keys.

    very long list in the XML and UI :)
    While slightly annoying it should still work and be manageable.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    ajs MP2Web - MP1 compatibility MediaPortal 1 20
    T MadVR + LAV Filters, Perfect in MPC-BE, Bad in MP1 MediaPortal 1 Talk 12
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    framug [solved] Some changes/fix in MP1 configuration client and server Submit: code patches (MediaPortal/TV-Server/etc.) 14
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    C Streaming/transcoding MP2 vs MP1? General 1
    ajs [fixed] 5015: Improving the MP1 installer, providing nicer GUI :) MediaPortal 1 138
    C Streaming to clients over Wifi. MP1 or MP2? Newcomers Forum 0
    S Shortcuts MP1 My Recorded & TV Guide General 10
    azzuro [WiP] MP1-4999 - Big changes with many related change at once by Sebastiii MediaPortal 1 12
    ajs [Help Us!] MP1 X64 Version MediaPortal 1 20
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    wizard123 [solved] MP1 Build help MediaPortal 1 21
    ajs [News] MediaPortal 1 - 1.24 Released! News and Announcements 3
    CyberSimian [fixed] MP1-4990 : Improve horizontal scrolling in the EPG MediaPortal 1 10
    azzuro [WiP] MP1-5019: Replace MySQL with MariaDB MediaPortal 1 40
    catalpa Umsteiger von MP1: Schwierigkeiten Allgemeines Support- und Diskussionsforum 17
    CyberSimian [solved] MP1-4976 Built-in skin variables for current date MediaPortal 1 8
    rbo [solved] Umsteiger MP1 zu MP2 Allgemeines Support- und Diskussionsforum 67
    azzuro [Info] MP2 TVE inside MP1 repo MediaPortal 2 12
    G MP1 TV Server "failed to upgrade the database" using MS Sql Server Installation, configuration support 3
    lisag Can I get MP1 to open in the Recorded TV screen? MediaPortal 1 Talk 2
    M MP1 stops responding after Starting Plugins General Support 14
    R Problem with MP1 and WifiRemote Skins and Plugins Installer (MPEI) 8
    M.Hulot [solved] Netflix und amazon Prime in MP1 möglich? TV / Streaming 6
    Similar threads

























    Top Bottom