Keyboard shortcuts (2 Viewers)

mpirklbauer

Portal Pro
May 7, 2011
285
9
Home Country
Austria Austria
Can youexplain it for a dummy how you did get this working?
Thank you!


Got it working
 
Last edited:

velis

MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    Another dummy here: I can't seem to find documentation on how keys are actually mapped to keyboard. All I found is this wiki page. But this page references keys such as Key.Escape (straightforward for keyboard) or Key.Play (not exactly a standard key on a keyboard).
    So where is it listed which virtual key actually maps to a keyboard key? Morpheus linked a source that had (scan codes?), but I can't seem to be able to link that to PC keyboard.
     

    velis

    MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    These are in the Wiki. It's the "small" ones that are not, like skip forward, stop playback, media info, etc.
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    hese are in the Wiki. It's the "small" ones that are not, like skip forward, stop playback, media info, etc.
    The playback related keys are the ones from MCE keyboards / MCE remotes: they all have "Play"/"Stop" and such kind of buttons/keys. They should simply work out-of-the-box.
     

    velis

    MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    hese are in the Wiki. It's the "small" ones that are not, like skip forward, stop playback, media info, etc.
    The playback related keys are the ones from MCE keyboards / MCE remotes: they all have "Play"/"Stop" and such kind of buttons/keys. They should simply work out-of-the-box.
    Well, OK, but what if I don't have a compatible remote, but one that simulates a standard kbd? How can I issue the same commands with standard PC keyboard?
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    Or if you want to send commands using tcp/ip from tablet?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Well, OK, but what if I don't have a compatible remote, but one that simulates a standard kbd? How can I issue the same commands with standard PC keyboard?
    There are already some other ways available, if they do work for you I don't know for sure.
    1. The contained MCE remote plugin is able to map key codes to actions: https://github.com/MediaPortal/Medi...ubator/MceRemoteReceiver/DefaultRemoteMap.xml. Not sure which codes you can use there, but I guess you should be able to add/override the keys.
    2. There is a service to handle input from many other devcices, it's called IRSS. A client plugin which listens on inputs of this service is already contained inside MP2-Client.
    3. There is a CECRemote plugin: https://forum.team-mediaportal.com/threads/plugin-cec-remote-for-mp2.120652/
    4. @johanj then you would need to write a plugin for MP2 which handles those commands reveived from tcp/ip. One exisiting kind of plugin is the IrInput plugin (which does exactly this for IRSS source). See: https://github.com/MediaPortal/MediaPortal-2/tree/master/MediaPortal/Source/UI/UiComponents/IrInput
     

    velis

    MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    Thanks, Morpheus, once again you live up to your name :)
    I just find it interesting that keyboard is not supported as controlling device from start. I imagine it poses issues for te developers themselves. A remote is definitely not as convenitent as a keyboard while testing the software.
    Anyway, I'll try to get the required functionality from my remote, but so far IRSS seems the way to go. I'll be sure to post a feature request to support kbd though. My kids have MP on their PCs to watch TV and they only have wireless keyboards.
     

    Users who are viewing this thread

    Similar threads

    I guess from this, that the mapping steps basically work. Please try to map some of the keys you mention to be not working and upload the log files afterwards. Maybe @Brownard can see something and a solution can be found. Please open a thread in the OnlineVideo section for this, we should not mix 2 topics in one thread.
    I guess from this, that the mapping steps basically work. Please try to map some of the keys you mention to be not working and...
    I am having trouble to make my remote control work correctly on MP2. Having upgraded from MP1 to MP2 where the remote using the...
    Replies
    24
    Views
    4K
    • Sticky
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    506
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    We have just released MediaPortal 1.34 - Dune x86 and x64 version. Highlights of this release Bugfixes: [MP1-5201] - Fix MPC-HC...
    Replies
    10
    Views
    4K
    MP1 MP2 [solved] Keyboard shortcuts like in MP1? DE
    Thanks very much. It does indeed work (for some reason, the first time I needed to press "0" repeatedly before it would work, but after that, it's working fine. Much appreciated.
    Thanks very much. It does indeed work (for some reason, the first time I needed to press "0" repeatedly before it would work, but...
    Recently, and happily, switched from MP1 to MP2. I only use MP to watch ota tv broadcasts, on my PC. Just to say: There’s one...
    Replies
    2
    Views
    972
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    1
    Views
    2K
    Top Bottom