From 81d06ee723ef8d80258a11f13437e98302e68e19 Mon Sep 17 00:00:00 2001 From: Ebise Lutica <7106976+EbiseLutica@users.noreply.github.com> Date: Fri, 6 Dec 2024 18:15:00 +0900 Subject: [PATCH] =?UTF-8?q?enhance(input/mouse):=20=E3=83=9C=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E6=8A=BC=E4=B8=8B=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=A7=E3=80=81MouseButtonType=E3=82=92=E5=8F=96=E5=BE=97?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Promete/Input/MouseButtonEventArgs.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Promete/Input/MouseButtonEventArgs.cs b/Promete/Input/MouseButtonEventArgs.cs index 3e8af68..577725b 100644 --- a/Promete/Input/MouseButtonEventArgs.cs +++ b/Promete/Input/MouseButtonEventArgs.cs @@ -3,7 +3,12 @@ namespace Promete.Input; public class MouseButtonEventArgs(int buttonId, VectorInt position) : MouseEventArgs(position) { /// - /// Get the button ID related to the event. + /// このイベントが発生したボタンの種類を取得します。 /// public int ButtonId { get; } = buttonId; + + /// + /// このイベントが発生したボタンの種類を取得します。 + /// + public MouseButtonType ButtonType => (MouseButtonType)ButtonId; }