Try and fix phantom keyboard presses when using keyboard emulation
.NET Core Desktop / build (Release) (push) Has been cancelled Details

Change ring button emulation to be defaulted to true
pull/7/head 1.3.0
LeapwardKoex 2024-06-12 22:50:48 +12:00
parent 48cdfd0e72
commit b6872dde34
4 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,7 @@
<value /> <value />
</setting> </setting>
<setting name="IsRingButtonEmulationEnabled" serializeAs="String"> <setting name="IsRingButtonEmulationEnabled" serializeAs="String">
<value>False</value> <value>True</value>
</setting> </setting>
</WpfMaiTouchEmulator.Properties.Settings> </WpfMaiTouchEmulator.Properties.Settings>
</userSettings> </userSettings>

View File

@ -97,7 +97,7 @@ namespace WpfMaiTouchEmulator.Properties {
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")] [global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool IsRingButtonEmulationEnabled { public bool IsRingButtonEmulationEnabled {
get { get {
return ((bool)(this["IsRingButtonEmulationEnabled"])); return ((bool)(this["IsRingButtonEmulationEnabled"]));

View File

@ -21,7 +21,7 @@
<Value Profile="(Default)" /> <Value Profile="(Default)" />
</Setting> </Setting>
<Setting Name="IsRingButtonEmulationEnabled" Type="System.Boolean" Scope="User"> <Setting Name="IsRingButtonEmulationEnabled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value> <Value Profile="(Default)">True</Value>
</Setting> </Setting>
</Settings> </Settings>
</SettingsFile> </SettingsFile>

View File

@ -60,6 +60,7 @@ public partial class TouchPanel : Window
private void Window_Loaded(object sender, RoutedEventArgs e) private void Window_Loaded(object sender, RoutedEventArgs e)
{ {
buttons = VisualTreeHelperExtensions.FindVisualChildren<Polygon>(this); buttons = VisualTreeHelperExtensions.FindVisualChildren<Polygon>(this);
DeselectAllItems();
} }
public void PositionTouchPanel() public void PositionTouchPanel()