Skip to content

Commit f743719

Browse files
committed
dualsense: clear TP2 in practical mode single-touch scenario
1 parent f2f9eb8 commit f743719

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hhd/controller/virtual/dualsense/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,12 @@ def write_tp(offset, x, y):
635635
write_tp(self.ofs + 32, tp1_x, tp1_y)
636636

637637
# Set TP1 touch status if it's the left touchpad
638+
# (right touchpad's status is already set by set_button)
638639
if tp1_is_left:
639640
new_rep[self.ofs + 32] = new_rep[self.ofs + 32] & 0x7F
641+
642+
# Always clear TP2 in single-touch practical mode
643+
new_rep[self.ofs + 36] = new_rep[self.ofs + 36] | 0x80
640644
else:
641645
# Both touchpads are not touching: reset and clear
642646
self.tp1_owner = None

0 commit comments

Comments
 (0)