mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-25 14:44:28 +00:00
Add option to change mouse movement from Cinematic to Standard while in Angelica Zoom (#2166)
This commit is contained in:
1 parent
c10d30b2da
commit
977db3d604
6 files changed
+17
-3
No files matched your search
@@ -43,6 +43,10 @@ public class Zoom {
|
||||
return zoomEnabled;
|
||||
}
|
||||
|
||||
public static boolean isCinematicCameraEnabled(){
|
||||
return (boolean)Settings.ZOOM_CINEMATIC.option.getStore();
|
||||
}
|
||||
|
||||
public static void modifyZoom(int eventDWheel) {
|
||||
if (eventDWheel == 0) return;
|
||||
zoom = MathHelper.clamp_float((float) (zoom * Math.pow(ZOOM_STEP, Integer.signum(eventDWheel))), ZOOM_MIN, ZOOM_MAX);
|
||||
|
||||
Reference in new issue
Block a user