refactor: use InputManager for screens, DPI-aware InputManager

This commit is contained in:
Tropical
2026-03-09 23:41:56 -05:00
parent f0aa04a7ee
commit c4ce9b5377
3 changed files with 40 additions and 41 deletions

View File

@@ -44,7 +44,6 @@ void Button::render(Minecraft *minecraft, int xm, int ym)
glBindTexture(GL_TEXTURE_2D, minecraft->textures->loadTexture(TN_GUI_GUI)); // 4J was L"/gui/gui.png"
glColor4f(1, 1, 1, 1);
bool hovered = xm >= x && ym >= y && xm < x + w && ym < y + h;
int yImage = getYImage(hovered);