RawPointerEvent 構造体
入力基盤(GLFW / OpenVR)から届いた 1 件の生ポインタイベント。 意味づけ(Add/Remove の合成や PointerId の採番)は行わず、観測した事実のみを運びます。
名前空間: FloatSoda.Abstractions.Input
アセンブリ: FloatSoda.Abstractions.dll
public readonly record struct RawPointerEvent : IEquatable<RawPointerEvent>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”RawPointerEvent(RawPointerKind, Offset, PointerButton, Offset)
Section titled “RawPointerEvent(RawPointerKind, Offset, PointerButton, Offset)”入力基盤(GLFW / OpenVR)から届いた 1 件の生ポインタイベント。 意味づけ(Add/Remove の合成や PointerId の採番)は行わず、観測した事実のみを運びます。
public RawPointerEvent(RawPointerKind Kind, Offset Position, PointerButton Button = PointerButton.Left, Offset ScrollDelta = default)パラメーター
Section titled “パラメーター”Kind RawPointerKind
イベントの種別。
Position Offset
入力面ローカルのピクセル座標(原点左上)。全イベントで有効。
Button PointerButton
ButtonDown / ButtonUp のときのボタン種別。
ScrollDelta Offset
Scroll のときのスクロール量。
Button
Section titled “Button”ButtonDown / ButtonUp のときのボタン種別。
public PointerButton Button { get; init; }プロパティの値
Section titled “プロパティの値”イベントの種別。
public RawPointerKind Kind { get; init; }プロパティの値
Section titled “プロパティの値”Position
Section titled “Position”入力面ローカルのピクセル座標(原点左上)。全イベントで有効。
public Offset Position { get; init; }プロパティの値
Section titled “プロパティの値”ScrollDelta
Section titled “ScrollDelta”Scroll のときのスクロール量。
public Offset ScrollDelta { get; init; }