Inputdevice Manager for MP2 (1 Viewer)

osre

Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    Since I have the HAMA Remote, which does not really work with MP2 out of the box I tried to use this plugin.
    But I have a Problem.
    The Hama Remote has "Ctrl+O" for recordings, "Ctrl+R" for Record, "Ctrl+G" For Guide.
    When I map "Ctrl+O", the I see "O+ControlKey" on Screen. As soon as it is mapped, every key that has also the "Ctrl" key as combination goes to recordings then.
    As if "Ctrl" is mapped, and not "Ctrl+O".
    I have the config file attached. Would be nice if anyone could help.

    btw. Does MP2 has no dedicated keys for Skip/Back Fast Forward/Backward.
    I know I can do this with the arrow keys, but using the specialized keys would make more sens to me.
     

    Attachments

    • MediaPortal.Plugins.InputdeviceManager.InputmanagerSettings.xml
      628 bytes

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,706
    3,491
    Stuttgart
    Home Country
    Germany Germany
    Since I have the HAMA Remote, which does not really work with MP2 out of the box I tried to use this plugin.
    But I have a Problem.
    The Hama Remote has "Ctrl+O" for recordings, "Ctrl+R" for Record, "Ctrl+G" For Guide.
    When I map "Ctrl+O", the I see "O+ControlKey" on Screen. As soon as it is mapped, every key that has also the "Ctrl" key as combination goes to recordings then.
    As if "Ctrl" is mapped, and not "Ctrl+O".
    I have the config file attached. Would be nice if anyone could help.

    btw. Does MP2 has no dedicated keys for Skip/Back Fast Forward/Backward.
    I know I can do this with the arrow keys, but using the specialized keys would make more sens to me.

    Perhaps you can finalize the plugin ;):D
    I don't really enjoy to work on the MP2 Client... I like the Server much more. So I don't know if I will touch this plugin again to be honest. But if someone wants to change it, feel free. I am happy to commit and review the changes :)
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    I have one question @FreakyJ
    Whats the Intention of the multiple key binding?
    Is it that all keys in that list will trigger the Action, or does all the keys have te be pressed together to trigger the Action?
    I would hope it is the 2nd, or else key combination like "Ctrl + O" would not be possible.
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    I think I see the Problem.
    As I expected, if a binding has multiple keys, like "Ctrl + G", then it is activated if one of the keys is pressed.
    By this, all keys which have "Ctrl" in it will start the Action.
    At the current design this is not necessary, since I can create multiple bindings for one Action if I want to.
    SO I would Change the behavior to: All keys must be pushed to execute the Action.
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    I made the Change as described above, and now I can navigate with my HAMA remote :)
    I guess some fine Tuning might still be needed.
    Specially the green "Start" button also Switches Window state from Maximized to Normal and back.
    Not sure where this Comes from, since the key Code for this button is "LWin"
    Anyway: my preliminary config file is attached.
    I only changed:
    InputdeviceManager.cs: Line 74 from
    "if (executeAction && _pressedKeys.Count != 0)"
    to
    "if (executeAction && _pressedKeys.Count == keyMapping.Code.Count)"

    Need to test it in Action, but Looks not bad so far
     

    Attachments

    • MediaPortal.Plugins.InputdeviceManager.InputmanagerSettings.xml
      1.8 KB

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    It is a bug, it should only happen if all keys are pressed xD
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    It is a bug, it should only happen if all keys are pressed xD
    Great, so I fixed this one.
    There is another bug, where sometimes the dictionary with the keys seems not to be empty when adding a new key.

    Do I as an developer have write Access on your Git Fork?
    At least I cloned it from there.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    But maybe you made a mistake in programming it? I don't know. Wasn't at the computer yet to check the code. I thought it would work correctly oO
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Yes, it might be that the gui doesn't get cleared xD
    The code is a bit messy...

    You don't have write access but I will give it to you once I get near the comouter :)
     

    Users who are viewing this thread

    Top Bottom