Implement additional alternative camera control method

This commit is contained in:
utkabobr
2025-04-02 03:43:49 +03:00
parent 838cedbf1a
commit 8b200e689c
7 changed files with 58 additions and 31 deletions
@@ -68,12 +68,12 @@ public class Prefs {
return mPrefs.getString("beam_server_data", "{}");
}
public static boolean isRotationEnabled() {
return mPrefs.getBoolean("rotation_enabled", true);
public static int getCameraControlMode() {
return mPrefs.getInt("camera_control_mode", mPrefs.getBoolean("rotation_enabled", true) ? CAMERA_CONTROL_MODE_ROTATE_MOVE : CAMERA_CONTROL_MODE_MOVE_ONLY);
}
public static void setRotationEnabled(boolean e) {
mPrefs.edit().putBoolean("rotation_enabled", e).apply();
public static void setCameraControlMode(int mode) {
mPrefs.edit().putInt("camera_control_mode", mode).apply();
}
public static boolean isOrthoProjectionEnabled() {