use of cc.hyperium.mods.keystrokes.config.KeystrokesSettings in project Hyperium by HyperiumClient.
the class GuiScreenEditKeys method mouseClickMove.
@Override
protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) {
if (currentlyDragging != null) {
KeystrokesSettings settings = mod.getSettings();
currentlyDragging.setxOffset(currentlyDragging.getxOffset() + (mouseX - lastMouseX) / settings.getScale());
currentlyDragging.setyOffset(currentlyDragging.getyOffset() + (mouseY - lastMouseY) / settings.getScale());
lastMouseX = mouseX;
lastMouseY = mouseY;
updated = true;
}
}
Aggregations