mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-01 00:15:10 +01:00
scrollbar up/down buttons fixed
This commit is contained in:
parent
7289f78286
commit
178a26e23f
@ -267,13 +267,13 @@ void GuiFileBrowser::Update(GuiTrigger * t)
|
||||
|
||||
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())
|
||||
((GuiWindow *)this->GetParent())->ChangeFocus(this);
|
||||
}
|
||||
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())
|
||||
((GuiWindow *)this->GetParent())->ChangeFocus(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user