Inputdevice Manager for MP2 | Page 12

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

  1. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,110
    Likes Received:
    1,536
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,311 / 2
    Home Country:
    Germany Germany
    The list is binding to KeyItems. Currently is showing only the key name by the default string provider of ContentsMenuListViewStyle. When creating a new liststyle I need to know how I can bind to the actual mapped keys. I tried to find the variable I can bind to, but I'm not sure.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,904
    Likes Received:
    451
    Gender:
    Male
    Ratings:
    +688 / 0
    Home Country:
    Denmark Denmark
    Did you check the xaml files? I wrote comments in them. Should be “Name” and “KeyMap”.
     
  4. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,110
    Likes Received:
    1,536
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,311 / 2
    Home Country:
    Germany Germany
    Ah, now I found it as comment :D
     
  5. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,110
    Likes Received:
    1,536
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,311 / 2
    Home Country:
    Germany Germany
    @henso,
    I pushed a small change to allow 3 columns in the ListStyle
    • Column 0: Image (optional, I thought it would be good to use perhaps the images from our input manual)
    • Column 1: Name
    • Column 2: KeyMap
    If I put the Name in [...] it shows content, but KeyMap does not show content with [...] or without. Can you take a look on my changes.
     
  6. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,904
    Likes Received:
    451
    Gender:
    Male
    Ratings:
    +688 / 0
    Home Country:
    Denmark Denmark
    Would this also work with a key combination of "Left Shift + Alt + T"?
    What about the last column with the clear button?
    Works fine for me. Did you assign a key mapping?
     
  7. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,110
    Likes Received:
    1,536
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,311 / 2
    Home Country:
    Germany Germany
    Probabily not. I planned to use the name variable to assign also the image and "+" won't work then I guess.
    Anyway the image would be not for the mapped key, but for the in MP defined key action.

    Ops, I thought there is always a default mapping. I didn't map anything yet ;) Will try it.
    Edit: Yes, it works
     
  8. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,110
    Likes Received:
    1,536
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,311 / 2
    Home Country:
    Germany Germany
    I'd need another parameter for the images. Currently "Name" has folliwng structure 'key "Blue"', but " is also not allowed in file names.
     
  9. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,904
    Likes Received:
    451
    Gender:
    Male
    Ratings:
    +688 / 0
    Home Country:
    Denmark Denmark
    Done. "MapName".
     
  10. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,110
    Likes Received:
    1,536
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,311 / 2
    Home Country:
    Germany Germany
    I added many icons. I need to do a bit fine tuning on the layout and there are focusloss issues. If you e.g. map a new key you come back to the mapping overview and no item has focus. I'll try to solve it from xaml. Any other suggestions / ideas?
     
  11. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,904
    Likes Received:
    451
    Gender:
    Male
    Ratings:
    +688 / 0
    Home Country:
    Denmark Denmark
    Sounds good. What about the clear button in the last column. The current butten is not working. I only left it so you could see how to use it.
     
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!