Doc[input]: Explain why the input is sent early

This commit is contained in:
Mathias Boulay 2023-08-04 18:14:11 +02:00 committed by ArtDev
parent 3535c3d482
commit ea2d10aa1b

View File

@ -446,6 +446,7 @@ public class MinecraftGLSurface extends View implements GrabListener {
CallbackBridge.mouseX += (e.getX()* mScaleFactor);
CallbackBridge.mouseY += (e.getY()* mScaleFactor);
// Position is updated by many events, hence it is send regardless of the event value
CallbackBridge.sendCursorPos(CallbackBridge.mouseX, CallbackBridge.mouseY);
switch (e.getActionMasked()) {