本文整理汇总了C#中MediaPortal.IsUserAction方法的典型用法代码示例。如果您正苦于以下问题:C# MediaPortal.IsUserAction方法的具体用法?C# MediaPortal.IsUserAction怎么用?C# MediaPortal.IsUserAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MediaPortal
的用法示例。
在下文中一共展示了MediaPortal.IsUserAction方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnAction
/// OnAction handler; if any action is received then last busy time is reset (i.e. idletimeout is reset)
/// </summary>
/// <param name="action">action message sent by the system</param>
private void OnAction(MediaPortal.GUI.Library.Action action)
{
if (action.IsUserAction())
{
// Log.Debug("PS: Action {0} detected - reset time of last user activity and system idle timer", action.wID);
_lastUserTime = DateTime.Now;
PowerManager.ResetIdleTimer();
}
}
示例2: OnAction
public override void OnAction(MediaPortal.GUI.Library.Action action)
{
if (viewIsLarger)
{
if (action.m_key.KeyCode == 27)
{
// makes esc exit fullscreen
//hide fullscreen
dummyLarger.Visible = true;
viewIsLarger = false;
return;
}
if (action.IsUserAction())
{
//this stops the selection wondering around the screen
return;
}
}
switch (action.wID)
{
case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_DOWN:
case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_LEFT:
case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_RIGHT:
case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_UP:
base.OnAction(action);
break;
default:
base.OnAction(action);
break;
}
}