Add preference toggle for mouse pointer acceleration setting

Bug: 384552392
Test: verified on DUT
Flag: com.android.hardware.input.pointer_acceleration
Change-Id: I45de5bdd2456cfb4fab6d1398bdc5d8f7b9efddb
This commit is contained in:
Michael Checo
2024-12-18 17:36:38 +00:00
parent 27bf7fc326
commit f9a89f1c77
4 changed files with 189 additions and 0 deletions

View File

@@ -4648,6 +4648,10 @@
<string name="mouse_swap_primary_button">Swap left and right buttons</string>
<!-- Summary text for the 'Swap buttons' preference switch indicating to users that when this switch is enabled, their left click will behave as though it is the right click (secondary action) and that the right click will be the primary action. [CHAR LIMIT=NONE] -->
<string name="mouse_swap_primary_button_summary">Use the left mouse button as your right</string>
<!-- Title for the 'Cursor acceleration' preference switch, which dynamically adjusts cursor movement based on speed. [CHAR LIMIT=60] -->
<string name="mouse_pointer_acceleration">Cursor acceleration</string>
<!-- Summary text for the 'Cursor acceleration' preference switch indicating to users that when this switch is enabled, faster movements with your mouse will move the cursor farther. [CHAR LIMIT=NONE] -->
<string name="mouse_pointer_acceleration_summary">Faster movements with your mouse will move the cursor farther</string>
<!-- page title for Mouse key main page. [CHAR LIMIT=NONE] -->
<string name="mouse_key_main_page_title">Mouse keys for <xliff:g id="keyboard name" example="my keyboard">%s</xliff:g></string>
<!-- Summary text for Mouse keys directional image. [CHAR LIMIT=NONE] -->

View File

@@ -31,4 +31,10 @@
android:title="@string/mouse_swap_primary_button"
android:summary="@string/mouse_swap_primary_button_summary"
settings:controller="com.android.settings.inputmethod.MouseSwapPrimaryButtonPreferenceController" />
<SwitchPreferenceCompat
android:key="mouse_pointer_acceleration"
android:title="@string/mouse_pointer_acceleration"
android:summary="@string/mouse_pointer_acceleration_summary"
settings:controller="com.android.settings.inputmethod.MousePointerAccelerationPreferenceController" />
</PreferenceScreen>