scrollbar up/down buttons fixed

This commit is contained in:
dborth 2009-12-04 21:49:34 +00:00
parent a989decaf8
commit 9e0bff0219

View File

@ -267,13 +267,13 @@ void GuiFileBrowser::Update(GuiTrigger * t)
if(arrowDownBtn->GetState() == STATE_HELD && arrowDownBtn->GetStateChan() == t->chan) if(arrowDownBtn->GetState() == STATE_HELD && arrowDownBtn->GetStateChan() == t->chan)
{ {
t->wpad->btns_h |= WPAD_BUTTON_DOWN; t->wpad->btns_d |= WPAD_BUTTON_DOWN;
if(!this->IsFocused()) if(!this->IsFocused())
((GuiWindow *)this->GetParent())->ChangeFocus(this); ((GuiWindow *)this->GetParent())->ChangeFocus(this);
} }
else if(arrowUpBtn->GetState() == STATE_HELD && arrowUpBtn->GetStateChan() == t->chan) else if(arrowUpBtn->GetState() == STATE_HELD && arrowUpBtn->GetStateChan() == t->chan)
{ {
t->wpad->btns_h |= WPAD_BUTTON_UP; t->wpad->btns_d |= WPAD_BUTTON_UP;
if(!this->IsFocused()) if(!this->IsFocused())
((GuiWindow *)this->GetParent())->ChangeFocus(this); ((GuiWindow *)this->GetParent())->ChangeFocus(this);
} }