Stop key ("b") in Media Portal starts a game (1 Viewer)

vadimz

Portal Member
December 10, 2008
19
0
Home Country
Thanks for a great plugin :D

I've noticed a strange behavior with this plugin. I've mapped a stop button on my remote to alt+F4 to close Project64, but what happens is that a selected game starts again... The tests revealed that a list of games reacts to MediaPortal's stop button mapped to key "b" the same as if Enter was pressed.

Can this be fixed?

thanks. :)
 

vadimz

Portal Member
December 10, 2008
19
0
Home Country
Found the problem

In Plugin.cs OnClicked event checks the actionType and if it's anything but remote's 0 to 9 keys calls guiHandler.onFacadeClicked();

As a result any remote key press starts a game. In my case when I stop the game using remote control (mapped to 'b') if I keep it too long on stop button after Project64 closes MediaPortal catches that "b" key and starts the game again and again.

Since I only wanted to execute a game by selecting it, this is how I fixed it on my system, but there might be a better way. :)
Obvously you wouldn't want a case statement with only one case, but there could be more ... I don't know :rolleyes:

Code:
switch(actionType)
  {
    case Action.ActionType.ACTION_SELECT_ITEM:
      guiHandler.onFacadeClicked();
      break;
  }
 

buddman

MP Donator
  • Premium Supporter
  • October 9, 2008
    163
    12
    TX
    Home Country
    United States of America United States of America
    Why not close the game with your game controller instead (just use xpadder to map a "hold this button, push this button" sequence to do alt + f4). In my case, I use xpadder to map a sequence to my game controller that calls a ahk executable which will basically taskkill any emulation process (have to hold down both triggers and then push select). Is very clean and works every time since it kills the actual process.
     

    Users who are viewing this thread

    Top Bottom