[Approved] - Refactor of InputDevices to Map actions without triggering them

Discussion in 'Submit: code patches (MediaPortal/TV-Server/etc.)' started by Jason Pyke, March 3, 2015.

  1. Jason Pyke

    Jason Pyke Portal Pro

    Joined:
    April 12, 2013
    Messages:
    96
    Likes Received:
    30
    Gender:
    Male
    Ratings:
    +40 / 0
    Home Country:
    Great Britain (UK) Great Britain (UK)
    As part of OnlineVideos there is the option of launching an external executable to play a video and this application needs to respond to different remote actions. The patch adds the ability to map a WndProc message or a KeyPress event to the Input handlers and return an Action without actually triggering the Action.

    By reworking this it means we can keep the external executable free of dependencies on MediaPortal 1 and can still handle input devices and actions.


     

    Attached Files:

    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
  4. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    Hi, @Sebastiii - thanks for reviewing, can you create a bot build for this branch and link it here for testers?
     
    • Agree Agree x 1
  5. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,203
    Likes Received:
    6,167
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,148 / 9
    Home Country:
    France France
    Show System Specs
    Will post the link ASAP :)
     
  6. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,203
    Likes Received:
    6,167
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,148 / 9
    Home Country:
    France France
    Show System Specs
    Installer added to JIRA and here :)
     
    • Like Like x 1
  7. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,559
    Likes Received:
    652
    Gender:
    Male
    Ratings:
    +1,265 / 8
    Home Country:
    Germany Germany
    Show System Specs
    I don't fully understand what that patch does.
    I'm not quite sure what you do with your Action once you get it?
    Are you somehow sending it to your external program?
    Is it a case of MP getting the input and that external program responding on it?

    I wanted to start working on gamepad support so I was considering building on top of that patch to avoid merge conflict later on.
     
  8. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,559
    Likes Received:
    652
    Gender:
    Male
    Ratings:
    +1,265 / 8
    Home Country:
    Germany Germany
    Show System Specs
    • Like Like x 1
  9. Jason Pyke

    Jason Pyke Portal Pro

    Joined:
    April 12, 2013
    Messages:
    96
    Likes Received:
    30
    Gender:
    Male
    Ratings:
    +40 / 0
    Home Country:
    Great Britain (UK) Great Britain (UK)
    You're correct about the patch. Basically, it allows me to pass the wndproc and keypresses from the external application back to MP to be translated to actions. These actions then get passed on to the exe. Without this patch the actions would also be executed within MP, causing undesirable side effects.
     
  10. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,559
    Likes Received:
    652
    Gender:
    Male
    Ratings:
    +1,265 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Sounds rather twisted but why not, if it works :) Thanks for the clarifications.
     
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!