コード例 #1
0
void CGUIBaseContainer::OnLeft()
{
    bool wrapAround = m_actionLeft.GetNavigation() == GetID() || !m_actionLeft.HasActionsMeetingCondition();
    if (m_orientation == HORIZONTAL && MoveUp(wrapAround))
        return;
    else if (m_orientation == VERTICAL)
    {
        CGUIListItemLayout *focusedLayout = GetFocusedLayout();
        if (focusedLayout && focusedLayout->MoveLeft())
            return;
    }
    CGUIControl::OnLeft();
}
コード例 #2
0
ファイル: GUIBaseContainer.cpp プロジェクト: Kzibi/xbmc
void CGUIBaseContainer::OnLeft()
{
  bool wrapAround = m_controlLeft == GetID() || !(m_controlLeft || m_leftActions.size());
  if (m_orientation == HORIZONTAL && MoveUp(wrapAround))
    return;
  else if (m_orientation == VERTICAL)
  {
    CGUIListItemLayout *focusedLayout = GetFocusedLayout();
    if (focusedLayout && focusedLayout->MoveLeft())
      return;
  }
  CGUIControl::OnLeft();
}