From a377a27716d5146a76ba26ce7efd65ea7504db6e Mon Sep 17 00:00:00 2001 From: LeapwardKoex Date: Thu, 8 Feb 2024 23:22:45 +1300 Subject: [PATCH] Add a "C3" sensor button as windows touchscreen touches inbetween C1 and C2 if you hit a center not perfectly. --- MaiTouchSensorButtonStateManager.cs | 1 + TouchPanel.xaml | 1 + assets/C1+C2.png | Bin 0 -> 138 bytes 3 files changed, 2 insertions(+) create mode 100644 assets/C1+C2.png diff --git a/MaiTouchSensorButtonStateManager.cs b/MaiTouchSensorButtonStateManager.cs index 05c4917..bd4b725 100644 --- a/MaiTouchSensorButtonStateManager.cs +++ b/MaiTouchSensorButtonStateManager.cs @@ -23,6 +23,7 @@ enum TouchValue: long B8 = 1 << 15, // 2^15 C1 = 1 << 16, // 2^16 C2 = 1 << 17, // 2^17 + C3 = C1 | C2, // A special sensor used because center notes are hard to press using a windows touchscreen D1 = 1 << 18, // 2^18 D2 = 1 << 19, // 2^19 D3 = 1 << 20, // 2^20 diff --git a/TouchPanel.xaml b/TouchPanel.xaml index aebf1ff..ee5bf00 100644 --- a/TouchPanel.xaml +++ b/TouchPanel.xaml @@ -35,6 +35,7 @@ + diff --git a/assets/C1+C2.png b/assets/C1+C2.png new file mode 100644 index 0000000000000000000000000000000000000000..8acab4fc33711b2aa0b4240b17aa4ad8fe1dca04 GIT binary patch literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^tU#Q=!3-oHb$HkTDaPU;cPEB*=VV?2IV|apzK#qG z8~eHcB!W~j2l#}z{{R1f`4Q<8KrUy2M`SSr1K(i~W;~w1A_XWY;OXKRq7j@d!MeC1 c=fD951||mv#t4Q-*MV{jp00i_>zopr0HaDHYybcN literal 0 HcmV?d00001