Skip to content

Commit

Permalink
Rename TouchpadPressEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
BarRaider committed Feb 12, 2023
1 parent 54b92a7 commit 6054509
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion barraider-sdtools/Backend/PluginContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private async void Connection_OnDidReceiveGlobalSettings(object sender, SDEventR
}
}

private async void Connection_OnTouchpadPress(object sender, SDEventReceivedEventArgs<TouchpadPress> e)
private async void Connection_OnTouchpadPress(object sender, SDEventReceivedEventArgs<TouchpadPressEvent> e)
{
await instancesLock.WaitAsync();
try
Expand Down
2 changes: 1 addition & 1 deletion barraider-sdtools/Communication/SDEvents/BaseEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public abstract class BaseEvent

{ EventTypes.DialRotate, typeof(DialRotateEvent) },
{ EventTypes.DialPress, typeof(DialPressEvent) },
{ EventTypes.TouchpadPress, typeof(TouchpadPress) },
{ EventTypes.TouchpadPress, typeof(TouchpadPressEvent) },
};

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace BarRaider.SdTools.Communication.SDEvents
/// <summary>
/// Payload for touchpad press
/// </summary>
public class TouchpadPress : BaseEvent
public class TouchpadPressEvent : BaseEvent
{
/// <summary>
/// Action Name
Expand Down
4 changes: 2 additions & 2 deletions barraider-sdtools/Communication/StreamDeckConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public class StreamDeckConnection
/// <summary>
/// Raised when the tochpad is pressed
/// </summary>
public event EventHandler<SDEventReceivedEventArgs<TouchpadPress>> OnTouchpadPress;
public event EventHandler<SDEventReceivedEventArgs<TouchpadPressEvent>> OnTouchpadPress;

#endregion

Expand Down Expand Up @@ -395,7 +395,7 @@ private async Task<WebSocketCloseStatus> ReceiveAsync()
case EventTypes.SendToPlugin: OnSendToPlugin?.Invoke(this, new SDEventReceivedEventArgs<SendToPluginEvent>(evt as SendToPluginEvent)); break;
case EventTypes.DialRotate: OnDialRotate?.Invoke(this, new SDEventReceivedEventArgs<DialRotateEvent>(evt as DialRotateEvent)); break;
case EventTypes.DialPress: OnDialPress?.Invoke(this, new SDEventReceivedEventArgs<DialPressEvent>(evt as DialPressEvent)); break;
case EventTypes.TouchpadPress: OnTouchpadPress?.Invoke(this, new SDEventReceivedEventArgs<TouchpadPress>(evt as TouchpadPress)); break;
case EventTypes.TouchpadPress: OnTouchpadPress?.Invoke(this, new SDEventReceivedEventArgs<TouchpadPressEvent>(evt as TouchpadPressEvent)); break;
default:
Logger.Instance.LogMessage(TracingLevel.WARN, $"{this.GetType()} Unsupported Stream Deck event: {strBuffer}");
break;
Expand Down

0 comments on commit 6054509

Please sign in to comment.