Inputdevice Manager for MP2

Discussion in 'Plugin Development' started by FreakyJ, September 30, 2015.

  1. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    I've just created a little plugin which allows everyone to map key combinations of his HID to any special key available in MP2.

    How to install:
    Copy the folder inside teh archiv to the Plugins folder of the MP2 Client.

    How to use:
    1) got to Settings -> select "Inputdevices" -> select "Inputdevice Manager"
    2) follow the onscreen instructions :)

    Source: FreakyJ/MediaPortal-2

    Step1.PNG Step2.PNG Step3.PNG Step4.PNG

    Update 20.03.2016
    New Version by Osre attached below



    Update 2018-04-07
    New Version V1.2: recompiled against MP 2.1.3, no functional changes
     

    Attached Files:

    Last edited by a moderator: April 7, 2018
    • Thank You! Thank You! x 7
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    @ge2301
    You were interested in this plugin :)
     
  4. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    5,978
    Likes Received:
    1,469
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,232 / 2
    Home Country:
    Germany Germany
    I think many people are interested! I'll directly test it when I'm home. Currently I'm for a parents visit in Germany.
     
    • Like Like x 1
  5. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    Looks useful if one use a regular remote. Any interest in adding a tcp/ip server as well for receiving commands? I guess I can try to use this plugin and send commands to the logitech touchmouse server but that is more of a workaround instead of sending commands directly to MP2 plugin.
     
  6. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Could you elaborate this a little bit more?
    I could probably add a TCP Listener:
    https://msdn.microsoft.com/de-de/library/system.net.sockets.tcplistener(v=vs.110).aspx

    But I would add a fixed mapping saved in a config file. For example the command "cmd:home" is mapped to "Key.Home". If you would like to change this you have to edit the xml file.
    The xml file would contain all known mappings and commands. So it is extensible by just changing the xml file.
     
  7. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    Mappings saved on file is perfectly fine. What I'm after is the same functionality in MP2 that we have with the WifiRemote plugin in MP1. That plugin do more than receiving remote commands. One can also start playback of a file or media item (where the media item id is taken from MPExtended), receive now playing updates etc.

    But the first step is to receive basic remote commands. Adding this to your plugin and it would be easy to add support for using the remote of MediaPortal iViewer also for MP2.
     
  8. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    10,856
    Likes Received:
    4,680
    Ratings:
    +6,704 / 11
    Home Country:
    Germany Germany
    Show System Specs
  9. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    I am more in favor to create a new plugin. I will take a look into this later :)
    Can someone point me to the commands known by Wifi Remote?
     
  10. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
  11. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    10,856
    Likes Received:
    4,680
    Ratings:
    +6,704 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Yes, this what I've meant by "template" ;)
     
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!