Esempio n. 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();
}
Esempio n. 2
0
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();
}