Inputdevice Manager for MP2 | Page 14

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

  1. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,913
    Likes Received:
    786
    Gender:
    Male
    Ratings:
    +1,319 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I've pushed some changes, the EmptyStringToBoolConverter seemed to work for me. You also needed to bind the clear command to the InputManagerModel as that contains the delete method. However, the delete method seems to broken, the model calls it correctly but the mapping to delete is never found.
    @henso the delete method looks for a KeyMapping that matches the object stored in AdditionalProperties[KEY_KEYMAP_DATA], however when screen mapping there's a string stored there instead of a KeyMapping so a matching item is never found.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,936
    Likes Received:
    459
    Gender:
    Male
    Ratings:
    +698 / 0
    Home Country:
    Denmark Denmark
    Thanks. I couldn't test it because I waited for the clear button to work. Should work now.
     
  4. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,170
    Likes Received:
    1,556
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,341 / 2
    Home Country:
    Germany Germany
    Doesn't work yet. The clear button is working and a dialog appears, when pressing it.
    But the mapping remains. The problem is still, that no list item has focus, then the clear button has focus, so MP2 does not know which mapping to clear, or?
     
  5. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,913
    Likes Received:
    786
    Gender:
    Male
    Ratings:
    +1,319 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    No, the clear button is part of the list item and the clear method is called correctly with the right item. There's possibly still an issue with the method or updating the item's label.
     
  6. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,170
    Likes Received:
    1,556
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,341 / 2
    Home Country:
    Germany Germany
    You're right, it's part of the ItemContainerStyle. Leaving the screen and returning is also not changing the state, so it's at least not related to updating of label I think.
    Edit: Strange. I rebuilt everything and suddenly it works.
     
    Last edited: June 9, 2018
  7. Alberto83
    • Team MediaPortal

    Alberto83 Test Group

    Joined:
    August 7, 2012
    Messages:
    336
    Likes Received:
    80
    Gender:
    Male
    Ratings:
    +119 / 1
    Home Country:
    Italy Italy
    I've just managed to compile and test this latest branch, and it worked like a charm. Then I copied the plugin built earlier on the latest WIP 218 which i use in production and i immediately found "an issue".
    The device manager works if (and only if) you set it up using the "machine account" when user management is turned on. If you set it up using a user account it does work until the end of the session, but closing and opening mediaportal again makes it not working anymore.
    I can totally see that it writes the configuration in the correct place under the user account folder, but i think that when you start mediaportal it loads the config file from the machine account, and it does not refresh the configuration when you "log in" using an account.

    I had to set it up under machine account (back on the login screen) to make it work for all users.

    Can anybody confirm this?
     
    • Agree Agree x 1
  8. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,170
    Likes Received:
    1,556
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,341 / 2
    Home Country:
    Germany Germany
    I can confirm the behaviour. Seems it needs a small adjustment for being compatible with user management. This makes me believe we should also check other plugins in combination with user management enabled.
     
    • Agree Agree x 1
  9. Alberto83
    • Team MediaPortal

    Alberto83 Test Group

    Joined:
    August 7, 2012
    Messages:
    336
    Likes Received:
    80
    Gender:
    Male
    Ratings:
    +119 / 1
    Home Country:
    Italy Italy
    Yes. Actually it's not a big deal if some plugins do not work with user management, but then we should add a GLOBAL and a USER section to group all those plugins that might or might not work with User management. Troubleshooting this was confusing, at first.
     
  10. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,936
    Likes Received:
    459
    Gender:
    Male
    Ratings:
    +698 / 0
    Home Country:
    Denmark Denmark
    I pushed a fix. Could you test please?
     
    • Like Like x 2
  11. Alberto83
    • Team MediaPortal

    Alberto83 Test Group

    Joined:
    August 7, 2012
    Messages:
    336
    Likes Received:
    80
    Gender:
    Male
    Ratings:
    +119 / 1
    Home Country:
    Italy Italy
    Yes. I'm gonna test it later or tomorrow, I'm out for dinner now.

    I'm gonna reset all settings from input device manager and create a new one with my account and the i'l log with different accounts to see if it reloads settings.

    Sent from my SM-N950F using Tapatalk
     
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!