[Finished] - [MP1-4795] Add keyboard support to HID handler | Page 2

Discussion in 'Area 51 - Testing Area' started by Stéphane Lenclud, April 29, 2016.

  1. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Thanks, will add the missing ones ("<" and ">" ) to xml and re-test.


     
    • Thank You! Thank You! x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    @CyberSimian With the installer provided above you should already be able to create an HID profile that works with Ortek/Hama.
    Though you will need to edit te XML file rather than use to UI to be able to use shift and other modifiers.
    I would create an hid.wmc.xml file in the built-in config folder from a copy of hid.full.xml and amend it has needed:
    • Replace Escape with Backspace
    • Add the various modifiers shortcuts you need.
    Ideally we should be able to keep the whole thing compatible with WMC shortcuts. If not than we should rather name it hid.hama.xml I guess.
    If you get around compiling such a file make sure you provide it to me here so that I can integrate it as part of those changes.
    Be careful when doing changes through the UI as the current version could be loosing modifiers status such as shift and control.
     
  4. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Once you have something you are happy with provide me with the modified file here and I'll see if I can integrate it.
    If you need changing too many thing then we could create an hid.lirc.xml profile I guess.
     
  5. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Remapped the dialog key on my remote (Flirc config) to the "O" key so that it sends the yellow key however I'm getting a duplicate all layers entry but not sure if that is normal :)

    flirc_yellow_passthru.PNG

    // Update

    One saved and re-opened the "O" key only has 1 All layers, basically want it to passhru the yellow key in all situations (for AudioSwitcher addon) but now that I think about that will cause some issues with other actions (dialog search etc..)
     
    • Like Like x 1
  6. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Added the missing keys to the XML which are mapped to the yellow key (AtmoLight menu) and dvd menu (AudioSwitcher menu), comes down OemPeriod and Oemcomma with shift Up :)
    Working perfectly this way (y)
     

    Attached Files:

    • Like Like x 1
  7. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Just published a new build with better support for button properties such as modifiers.

    upload_2016-5-17_19-39-51.png
     
    Last edited: May 18, 2016
    • Like Like x 1
    • Thank You! Thank You! x 1
  8. CyberSimian
    • Team MediaPortal

    CyberSimian Test Group

    Joined:
    June 10, 2013
    Messages:
    1,646
    Likes Received:
    543
    Gender:
    Male
    Location:
    Southampton
    Ratings:
    +963 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I have downloaded the current version, and will try it tomorrow (I have a spare partition that I can use).

    Many buttons should be compatible. :) But there are a few awkward ones, so using the WMC definition file may not give optimal usability for the Ortek/Hama. :(

    My current "Centarea HID" for the Ortek/Hama uses an AutoHotKey script to give improved usability. It may turn out to be necessary to continue using such a script to circumvent some of the Ortek/Hama weirdness. I will know more when I have used the new support for a while.

    -- from CyberSimian in the UK
     
    • Thank You! Thank You! x 1
  9. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Actually I Just published a new build that let's you add new keyboard buttons.
    Code of existing keyboard buttons can also be changed.

    upload_2016-5-18_16-24-4.png
     
    • Like Like x 4
    • Thank You! Thank You! x 1
  10. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    To be able to contribute this to an official release I'll need to:
    • Fix broken free text input that's used in various search fields.
    • Prevent stray events by removing much of our global key mapping.
    • Provide an HID keyboard only profile.
    • Provide an option to turn on/off legacy keyboard handler.
    • Add some of our hard coded keyboard shortcut to HID profile. Add missing actions if needed.
    • Get more people to test and validate.
     
    • Like Like x 3
  11. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    I've updated the first post with a version that should be really close from final.
    @Testers @Developers please give it a try if you get a chance.
    It should be just MP1.15 + HID Keyboard support.
     
    • Thank You! Thank You! x 3
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!