summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2024-03-18 15:59:27 +0000
committer Harry Cutts <hcutts@google.com> 2024-03-18 17:47:10 +0000
commitd969570a63feda83aadec3fb720587bdd44b9d2d (patch)
treed78edc6cc427483bdddd253e98375804e1313842
parent8a83fb37ca2c95646ad9d0f85efeaf613d12eba4 (diff)
Sony DualShock 4: disable palm edge zones
Bug: 272518665 Test: compare responsiveness of pad edges with and without the change 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