mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-24 03:29:22 +01:00
scrollbar up/down buttons fixed
This commit is contained in:
parent
a989decaf8
commit
9e0bff0219
@ -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