feat: reimplement absolute mouse input on SDL
This commit is contained in:
1 parent
cf3defee35
commit
8ae9e62be3
3 files changed
+13
-5
No files matched your search
@@ -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