Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d99e36d2 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge changes from topic "cherrypicker-L80100030002770022:N95700030046060924" into 24D1-dev

* changes:
  Sony DualShock 4: disable drumroll suppression
  Sony DualShock 4: disable palm edge zones
  Sony DualShock 4: disable drumroll detection by speed change
parents 9acf675d 02527403
Loading
Loading
Loading
Loading
+28 −1
Original line number Diff line number Diff line
@@ -13,9 +13,11 @@
# limitations under the License.

#
# Sony DS4 motion sensor configuration file.
# Sony Playstation(R) DualShock 4 Controller
#

## Motion sensor ##

# reporting mode 0 - continuous
sensor.accelerometer.reportingMode = 0
# The delay between sensor events corresponding to the lowest frequency in microsecond
@@ -33,3 +35,28 @@ sensor.gyroscope.maxDelay = 100000
sensor.gyroscope.minDelay = 5000
# The power in mA used by this sensor while in use
sensor.gyroscope.power = 0.8

## Touchpad ##

# After the DualShock 4 has been connected over Bluetooth for a minute or so,
# its reports start bunching up in time, meaning that we receive 2–4 reports
# within a millisecond followed by a >10ms wait until the next batch.
#
# This uneven timing causes the apparent speed of a finger (calculated using
# time deltas between received reports) to vary dramatically even if it's
# actually moving smoothly across the touchpad, triggering the touchpad stack's
# drumroll detection logic. For moving fingers, the drumroll detection logic
# splits the finger's single movement into many small movements of consecutive
# touches, which are then inhibited by the click wiggle filter. For tapping
# fingers, it prevents tapping to click because it thinks the finger's moving
# too fast.
#
# Since this touchpad doesn't seem to have to drumroll issues, we can safely
# disable drumroll detection.
gestureProp.Drumroll_Suppression_Enable = 0

# 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
+28 −1
Original line number Diff line number Diff line
@@ -13,9 +13,11 @@
# limitations under the License.

#
# Sony DS4 motion sensor configuration file.
# Sony Playstation(R) DualShock 4 Controller
#

## Motion sensor ##

# reporting mode 0 - continuous
sensor.accelerometer.reportingMode = 0
# The delay between sensor events corresponding to the lowest frequency in microsecond
@@ -33,3 +35,28 @@ sensor.gyroscope.maxDelay = 100000
sensor.gyroscope.minDelay = 5000
# The power in mA used by this sensor while in use
sensor.gyroscope.power = 0.8

## Touchpad ##

# After the DualShock 4 has been connected over Bluetooth for a minute or so,
# its reports start bunching up in time, meaning that we receive 2–4 reports
# within a millisecond followed by a >10ms wait until the next batch.
#
# This uneven timing causes the apparent speed of a finger (calculated using
# time deltas between received reports) to vary dramatically even if it's
# actually moving smoothly across the touchpad, triggering the touchpad stack's
# drumroll detection logic. For moving fingers, the drumroll detection logic
# splits the finger's single movement into many small movements of consecutive
# touches, which are then inhibited by the click wiggle filter. For tapping
# fingers, it prevents tapping to click because it thinks the finger's moving
# too fast.
#
# Since this touchpad doesn't seem to have drumroll issues, we can safely
# disable drumroll detection.
gestureProp.Drumroll_Suppression_Enable = 0

# 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