summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2024-03-18 15:59:27 +0000
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2024-03-26 23:35:17 +0000
commit5843daa8af0a05344e8594be071defbe7f1ab44c (patch)
tree90e2dd3593cd05b41554832ce31592a1ef976a53
parentce3473c72cbbb7b641acf704f03c1373690e5c2e (diff)
Sony DualShock 4: disable palm edge zones
Bug: 272518665 Test: compare responsiveness of pad edges with and without the change (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d969570a63feda83aadec3fb720587bdd44b9d2d) Merged-In: I3c44dc74ecb740c0b598623f60b0727cd6ce383a Change-Id: I3c44dc74ecb740c0b598623f60b0727cd6ce383a
-rw-r--r--data/keyboards/Vendor_054c_Product_05c4.idc6
-rw-r--r--data/keyboards/Vendor_054c_Product_09cc.idc6
2 files changed, 12 insertions, 0 deletions
diff --git a/data/keyboards/Vendor_054c_Product_05c4.idc b/data/keyboards/Vendor_054c_Product_05c4.idc
index b3df9a066305..9576e8d042ba 100644
--- a/data/keyboards/Vendor_054c_Product_05c4.idc
+++ b/data/keyboards/Vendor_054c_Product_05c4.idc
@@ -53,3 +53,9 @@ sensor.gyroscope.power = 0.8
# disable drumroll detection due to speed changes (by setting the speed change
# threshold very high, since there's no boolean control property).
gestureProp.Drumroll_Max_Speed_Change_Factor = 1000000000
+
+# Because of the way this touchpad is positioned, touches around the edges are
+# no more likely to be palms than ones in the middle, so remove the edge zones
+# from the palm classifier to increase the usable area of the pad.
+gestureProp.Palm_Edge_Zone_Width = 0
+gestureProp.Tap_Exclusion_Border_Width = 0
diff --git a/data/keyboards/Vendor_054c_Product_09cc.idc b/data/keyboards/Vendor_054c_Product_09cc.idc
index b3df9a066305..9576e8d042ba 100644
--- a/data/keyboards/Vendor_054c_Product_09cc.idc
+++ b/data/keyboards/Vendor_054c_Product_09cc.idc
@@ -53,3 +53,9 @@ sensor.gyroscope.power = 0.8
# disable drumroll detection due to speed changes (by setting the speed change
# threshold very high, since there's no boolean control property).
gestureProp.Drumroll_Max_Speed_Change_Factor = 1000000000
+
+# Because of the way this touchpad is positioned, touches around the edges are
+# no more likely to be palms than ones in the middle, so remove the edge zones
+# from the palm classifier to increase the usable area of the pad.
+gestureProp.Palm_Edge_Zone_Width = 0
+gestureProp.Tap_Exclusion_Border_Width = 0