GUI: Add scrolling

Fixes #107
This commit is contained in:
Er2
2024-04-09 17:11:30 +03:00
parent 0da5a0322a
commit 419f730410
13 changed files with 62 additions and 29 deletions

View File

@@ -120,6 +120,10 @@ void Screen::charInput(char chr)
}
}
void Screen::handleScroll(bool down)
{
}
static const char* g_panoramaList[] =
{
"gui/background/panorama_0.png",
@@ -430,6 +434,8 @@ void Screen::mouseEvent()
else
mouseReleased(m_width * pAction->_posX / Minecraft::width, m_height * pAction->_posY / Minecraft::height - 1 + getYOffset(), Mouse::getEventButton());
}
if (pAction->_buttonType == BUTTON_SCROLLWHEEL)
handleScroll(Mouse::getEventButtonState());
}
void Screen::renderBackground(int unk)