ButtonWindowEvent
(クラス)
public abstract sealed ButtonWindowEvent {inherits
InputWindowEvent
}
パッケージ:
CURL.GRAPHICS.WINDOW
直接継承しているサブクラス:
ButtonReleaseWindowEvent
,
ButtonPressWindowEvent
マウス ボタンの押し下げまたは解放を示す InputWindowEvent。
コンストラクタ
default
:
コンストラクタ protected
{ButtonWindowEvent.default
}
プロパティ
button
:
押された、または離されたボタン。
フィールド public-get private-set ButtonWindowEvent.button:
Keycode
プロパティ 継承
InputWindowEvent
:
state
,
x
,
y
プロパティ 継承
TimedWindowEvent
:
time
プロパティ 継承
WindowEvent
:
window
メソッド
メソッド 継承
Object
:
object-describe
,
object-describe-for-debugging
,
object-serialize
コンストラクタ詳細
default
(コンストラクタ)
protected
{ButtonWindowEvent.default
}
この項目はサポートされていません。内部使用限定となっています。
プロパティ詳細
button
(フィールド)
public-get private-set ButtonWindowEvent.button:
Keycode
押された、または離されたボタン。
説明
ボタンのインデックスは 1-based で、左マウス ボタンはボタン 1、中のマウス ボタンはボタン 2、右マウス ボタンはボタン 3 です。これらはそれぞれ値
Keycode.button-1
、
Keycode.button-2
、および
Keycode.button-3
に対応しています。
これらの
Keycode
の値はボタン番号と同じであることに注意してください。たとえば
Keycode.button-2.value
は 2 になります。
メソッド詳細