Hi everyone,
I'm stuck with something. Hope you guys can help me.
This is what I want to do:
When a video is playing, i want to add an ActionListener with the key "l"
This is what I got:
This is what happens: While the video is playing, there is a new window that doesn't react to my input.
Can I add the OnAction to the current window that is playing the file?
Grateful for any hint!
I'm stuck with something. Hope you guys can help me.
This is what I want to do:
When a video is playing, i want to add an ActionListener with the key "l"
This is what I got:
Code:
class 1
{
...
if (control == Play)
{
g_Player.Play(file);
g_Player.ShowFullScreenWindow();
}
public override void OnAction(MediaPortal.GUI.Library.Action action)
{
switch (action.wID)
{
case MediaPortal.GUI.Library.Action.ActionType.ACTION_KEY_PRESSED:
{
if ((char)action.m_key.KeyChar == 'l')
{
doSomething();
}
}
break;
}
base.OnAction(action);
}
...
}
This is what happens: While the video is playing, there is a new window that doesn't react to my input.
Can I add the OnAction to the current window that is playing the file?
Grateful for any hint!