Revert "feat: Make long press to right click configurable"
Some checks failed
Build AppImage / build_appimage (push) Failing after 11s

This reverts commit 954b18309f.
This commit is contained in:
2026-02-15 02:08:27 +08:00
parent a5c3df940e
commit 182206afbe
6 changed files with 18 additions and 46 deletions

View File

@@ -67,7 +67,6 @@
"LEFT_HANDED_MOUSE": "Left-handed mouse",
"LEFT_HANDED_MOUSE_HELP": "Use this if mouse buttons are swapped",
"LONG_PRESS_DURATION": "Long press duration",
"LONG_PRESS_TO_RIGHT_CLICK": "Long press to right click",
"LOOK_AND_FEEL": "Look & Feel",
"MISC": "Miscellaneous",
"NOTIFICATIONS_ENABLED": "Enable notifications",

View File

@@ -231,7 +231,6 @@ enum SettingType {
Language,
LeftHandedMouse,
LongPressDuration,
LongPressToRightClick,
NotificationsEnabled,
NotificationsSoundEnabled,
OpaqueBackground,
@@ -268,7 +267,6 @@ impl SettingType {
Self::AllowSliding => &mut config.allow_sliding,
Self::FocusFollowsMouseMode => &mut config.focus_follows_mouse_mode,
Self::LeftHandedMouse => &mut config.left_handed_mouse,
Self::LongPressToRightClick => &mut config.long_press_to_right_click,
Self::BlockGameInput => &mut config.block_game_input,
Self::BlockGameInputIgnoreWatch => &mut config.block_game_input_ignore_watch,
Self::BlockPosesOnKbdInteraction => &mut config.block_poses_on_kbd_interaction,
@@ -380,7 +378,6 @@ impl SettingType {
Self::Language => Ok("APP_SETTINGS.LANGUAGE"),
Self::LeftHandedMouse => Ok("APP_SETTINGS.LEFT_HANDED_MOUSE"),
Self::LongPressDuration => Ok("APP_SETTINGS.LONG_PRESS_DURATION"),
Self::LongPressToRightClick => Ok("APP_SETTINGS.LONG_PRESS_TO_RIGHT_CLICK"),
Self::NotificationsEnabled => Ok("APP_SETTINGS.NOTIFICATIONS_ENABLED"),
Self::NotificationsSoundEnabled => Ok("APP_SETTINGS.NOTIFICATIONS_SOUND_ENABLED"),
Self::OpaqueBackground => Ok("APP_SETTINGS.OPAQUE_BACKGROUND"),
@@ -834,7 +831,6 @@ impl<T> TabSettings<T> {
checkbox!(mp, c, SettingType::InvertScrollDirectionY);
slider_f32!(mp, c, SettingType::ScrollSpeed, 0.1, 5.0, 0.1);
slider_f32!(mp, c, SettingType::LongPressDuration, 0.1, 2.0, 0.1);
checkbox!(mp, c, SettingType::LongPressToRightClick);
slider_f32!(mp, c, SettingType::PointerLerpFactor, 0.1, 1.0, 0.1);
slider_f32!(mp, c, SettingType::XrClickSensitivity, 0.1, 1.0, 0.1);
slider_f32!(mp, c, SettingType::XrClickSensitivityRelease, 0.1, 1.0, 0.1);