Skip to content

Commit

Permalink
enhance(input/mouse): ボタン押下イベントで、MouseButtonTypeを取得できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
EbiseLutica committed Dec 6, 2024
1 parent 8541eae commit 81d06ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Promete/Input/MouseButtonEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ namespace Promete.Input;
public class MouseButtonEventArgs(int buttonId, VectorInt position) : MouseEventArgs(position)
{
/// <summary>
/// Get the button ID related to the event.
/// このイベントが発生したボタンの種類を取得します。
/// </summary>
public int ButtonId { get; } = buttonId;

/// <summary>
/// このイベントが発生したボタンの種類を取得します。
/// </summary>
public MouseButtonType ButtonType => (MouseButtonType)ButtonId;
}

0 comments on commit 81d06ee

Please sign in to comment.