From ba35544867dce021068360a0cfa83c60f95c5a9a Mon Sep 17 00:00:00 2001 From: Jon West Date: Sat, 11 Jan 2025 16:32:15 -0500 Subject: [PATCH] [bass] Update distinct options --- src/modules/options/options.yaml | 87 +++++++++++++++++++++++--------- 1 file changed, 62 insertions(+), 25 deletions(-) diff --git a/src/modules/options/options.yaml b/src/modules/options/options.yaml index 041480a..6d3ca7d 100644 --- a/src/modules/options/options.yaml +++ b/src/modules/options/options.yaml @@ -281,34 +281,70 @@ - name: "Display Orientation/Rotation" options: - - name: "Set HDMI rotation (portrait, landscape)" - description: "SET_HDMI_ROTATION=" - editable: true - default: "landscape " + - name: "Set HDMI rotation" + distinct: true + options: + - name: "Force surfaceflinger primary display orientation to landscape" + description: "SET_HDMI_ROTATION=landscape" + - name: "Force surfaceflinger primary display orientation to portrait" + description: "SET_HDMI_ROTATION=portrait" - name: "Set per window input rotation on/off" description: "SET_PER_WINDOW_INPUT_ROTATION=1" - - name: "Set SurfaceFlinger rotation (0, 90, 180, 270)" - description: "SET_SF_ROTATION=" - editable: true - default: "0 " - - name: "Set touchscreen rotation (0, 90, 180, 270)" - description: "SET_TOUCHSCREEN_ROTATION=" - editable: true - default: "0 " - - name: "Set internal display rotation (0, 90, 180, 270)" - description: "SET_ROTATION_ON_INTERNAL_DISPLAY=" - editable: true - default: "0 " + - name: "Set SurfaceFlinger rotation" + distinct: true + options: + - name: "Force SurfaceFlinger rotation to 0" + description: "SET_SF_ROTATION=0" + - name: "Force SurfaceFlinger rotation to 90" + description: "SET_SF_ROTATION=90" + - name: "Force SurfaceFlinger rotation to 180" + description: "SET_SF_ROTATION=180" + - name: "Force SurfaceFlinger rotation to 270" + description: "SET_SF_ROTATION=270" + - name: "Set touchscreen rotation" + distinct: true + options: + - name: "Force touchscreen rotation to 0" + description: "SET_TOUCHSCREEN_ROTATION=0" + - name: "Force touchscreen rotation to 90" + description: "SET_TOUCHSCREEN_ROTATION=90" + - name: "Force touchscreen rotation to 180" + description: "SET_TOUCHSCREEN_ROTATION=180" + - name: "Force touchscreen rotation to 270" + description: "SET_TOUCHSCREEN_ROTATION=270" + - name: "Set internal display rotation" + distinct: true + options: + - name: "Force internal display rotation to 0" + description: "SET_ROTATION_ON_INTERNAL_DISPLAY=0" + - name: "Force internal display rotation to 90" + description: "SET_ROTATION_ON_INTERNAL_DISPLAY=90" + - name: "Force internal display rotation to 180" + description: "SET_ROTATION_ON_INTERNAL_DISPLAY=180" + - name: "Force internal display rotation to 270" + description: "SET_ROTATION_ON_INTERNAL_DISPLAY=270" - name: "Set override forced orientation (true/false)" description: "SET_OVERRIDE_FORCED_ORIENT=1" - - name: "Forces system app orientation (force_land, middle_port, original)" - description: "SET_SYSTEM_APP_ORIENT=" - editable: true - default: "original " - - name: "Set surfaceflinger primary display orientation (ORIENTATION_0/90/180/270)" - description: "SET_PRIMARY_DISPLAY_ORIENTATION=" - editable: true - default: "ORIENTATION_0 " + - name: "Forces system app orientation" + distinct: true + options: + - name: "Force system app orientation to force_land" + description: "SET_SYSTEM_APP_ORIENT=force_land" + - name: "Force system app orientation to middle_port" + description: "SET_SYSTEM_APP_ORIENT=middle_port" + - name: "Force system app orientation to original" + description: "SET_SYSTEM_APP_ORIENT=original" + - name: "Set surfaceflinger primary display orientation" + distinct: true + options: + - name: "Force surfaceflinger primary display orientation to 0" + description: "SET_PRIMARY_DISPLAY_ORIENTATION=ORIENTATION_0" + - name: "Force surfaceflinger primary display orientation to 90" + description: "SET_PRIMARY_DISPLAY_ORIENTATION=ORIENTATION_90" + - name: "Force surfaceflinger primary display orientation to 180" + description: "SET_PRIMARY_DISPLAY_ORIENTATION=ORIENTATION_180" + - name: "Force surfaceflinger primary display orientation to 270" + description: "SET_PRIMARY_DISPLAY_ORIENTATION=ORIENTATION_270" - name: "Memory Management & Hardware Timeout" options: @@ -385,7 +421,8 @@ - name: "Enable Desktop Windowing mode." description: "BASSEDW=1" - name: "Desktop Modes" - subgroups: + distinct: true + options: - name: "Desktop Mode 1" description: "BASSDM=1" - name: "Desktop Mode 2"