diff --git a/barraider-sdtools/Backend/PluginContainer.cs b/barraider-sdtools/Backend/PluginContainer.cs index e1a7c71..927a4c1 100644 --- a/barraider-sdtools/Backend/PluginContainer.cs +++ b/barraider-sdtools/Backend/PluginContainer.cs @@ -257,7 +257,7 @@ private async void Connection_OnDidReceiveGlobalSettings(object sender, SDEventR } } - private async void Connection_OnTouchpadPress(object sender, SDEventReceivedEventArgs e) + private async void Connection_OnTouchpadPress(object sender, SDEventReceivedEventArgs e) { await instancesLock.WaitAsync(); try diff --git a/barraider-sdtools/Communication/SDEvents/BaseEvent.cs b/barraider-sdtools/Communication/SDEvents/BaseEvent.cs index 2ddfc5d..9798101 100644 --- a/barraider-sdtools/Communication/SDEvents/BaseEvent.cs +++ b/barraider-sdtools/Communication/SDEvents/BaseEvent.cs @@ -64,7 +64,7 @@ public abstract class BaseEvent { EventTypes.DialRotate, typeof(DialRotateEvent) }, { EventTypes.DialPress, typeof(DialPressEvent) }, - { EventTypes.TouchpadPress, typeof(TouchpadPress) }, + { EventTypes.TouchpadPress, typeof(TouchpadPressEvent) }, }; /// diff --git a/barraider-sdtools/Communication/SDEvents/TouchTapEvent.cs b/barraider-sdtools/Communication/SDEvents/TouchpadPressEvent.cs similarity index 95% rename from barraider-sdtools/Communication/SDEvents/TouchTapEvent.cs rename to barraider-sdtools/Communication/SDEvents/TouchpadPressEvent.cs index a6f70bb..184fc14 100644 --- a/barraider-sdtools/Communication/SDEvents/TouchTapEvent.cs +++ b/barraider-sdtools/Communication/SDEvents/TouchpadPressEvent.cs @@ -9,7 +9,7 @@ namespace BarRaider.SdTools.Communication.SDEvents /// /// Payload for touchpad press /// - public class TouchpadPress : BaseEvent + public class TouchpadPressEvent : BaseEvent { /// /// Action Name diff --git a/barraider-sdtools/Communication/StreamDeckConnection.cs b/barraider-sdtools/Communication/StreamDeckConnection.cs index f4251d0..98e4c30 100644 --- a/barraider-sdtools/Communication/StreamDeckConnection.cs +++ b/barraider-sdtools/Communication/StreamDeckConnection.cs @@ -137,7 +137,7 @@ public class StreamDeckConnection /// /// Raised when the tochpad is pressed /// - public event EventHandler> OnTouchpadPress; + public event EventHandler> OnTouchpadPress; #endregion @@ -395,7 +395,7 @@ private async Task ReceiveAsync() case EventTypes.SendToPlugin: OnSendToPlugin?.Invoke(this, new SDEventReceivedEventArgs(evt as SendToPluginEvent)); break; case EventTypes.DialRotate: OnDialRotate?.Invoke(this, new SDEventReceivedEventArgs(evt as DialRotateEvent)); break; case EventTypes.DialPress: OnDialPress?.Invoke(this, new SDEventReceivedEventArgs(evt as DialPressEvent)); break; - case EventTypes.TouchpadPress: OnTouchpadPress?.Invoke(this, new SDEventReceivedEventArgs(evt as TouchpadPress)); break; + case EventTypes.TouchpadPress: OnTouchpadPress?.Invoke(this, new SDEventReceivedEventArgs(evt as TouchpadPressEvent)); break; default: Logger.Instance.LogMessage(TracingLevel.WARN, $"{this.GetType()} Unsupported Stream Deck event: {strBuffer}"); break;