mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-01 04:56:38 +00:00
feat: reimplement absolute mouse input on SDL
This commit is contained in:
@@ -121,8 +121,6 @@ void Screen::updateEvents()
|
||||
bool leftState = InputManager.ButtonDown(0, MINECRAFT_ACTION_ACTION);
|
||||
bool rightState = InputManager.ButtonDown(0, MINECRAFT_ACTION_USE);
|
||||
|
||||
printf("%d, %d\n", leftState, rightState);
|
||||
|
||||
if (leftState && !prevLeftState) {
|
||||
mouseClicked(xMouse, yMouse, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user