Interface IInputPointer
Namespace: GameCanvas
Assembly: GameCanvas.dll
Syntax
public interface IInputPointer
Properties
IsTouchPressureSupported
実行端末でタッチ圧力がサポートされているかどうか
Declaration
bool IsTouchPressureSupported { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsTouchSupported
実行端末でタッチ操作がサポートされているかどうか
Declaration
bool IsTouchSupported { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Windowsエディタ環境では、タッチ対応デバイスであっても常に偽を返します
LastPointerEvent
最後に検出したポインターイベント。過去のフレームも含める
Declaration
GcPointerEvent LastPointerEvent { get; }
Property Value
Type | Description |
---|---|
GcPointerEvent |
PointerBeginCount
前回のフレーム処理以降に検出した ポインター開始イベントの数
Declaration
int PointerBeginCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
PointerCount
前回のフレーム処理以降に検出した ポインターイベントの数
Declaration
int PointerCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
PointerEndCount
前回のフレーム処理以降に検出した ポインター終了イベントの数
Declaration
int PointerEndCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
PointerTapCount
前回のフレーム処理以降に検出した タップポイントの数
Declaration
int PointerTapCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
TapSettings
タップ感度の設定
Declaration
GcTapSettings TapSettings { get; set; }
Property Value
Type | Description |
---|---|
GcTapSettings |
Methods
TryGetPointerEvent(GcPointerEventPhase, Int32, out GcPointerEvent)
前回のフレーム処理以降に検出した ポインターイベントのうち、1つを取得します
Declaration
bool TryGetPointerEvent(in GcPointerEventPhase phase, in int i, out GcPointerEvent e)
Parameters
Type | Name | Description |
---|---|---|
GcPointerEventPhase | phase | イベント状態 |
Int32 | i | イベントインデックス(イベントIDではない) |
GcPointerEvent | e | イベント |
Returns
Type | Description |
---|---|
Boolean | 取得できたかどうか |
TryGetPointerEvent(Int32, out GcPointerEvent)
前回のフレーム処理以降に検出した ポインターイベントのうち、1つを取得します
Declaration
bool TryGetPointerEvent(in int i, out GcPointerEvent e)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | イベントインデックス(0 から PointerCount-1 までの連番。イベントIDではない) |
GcPointerEvent | e | イベント |
Returns
Type | Description |
---|---|
Boolean | 取得できたかどうか |
TryGetPointerEventAll(GcPointerEventPhase, out ReadOnlySpan<GcPointerEvent>)
前回のフレーム処理以降に検出した 指定された状態のポインターイベント全てを取得します
Declaration
bool TryGetPointerEventAll(in GcPointerEventPhase phase, out ReadOnlySpan<GcPointerEvent> events)
Parameters
Type | Name | Description |
---|---|---|
GcPointerEventPhase | phase | イベント状態 |
ReadOnlySpan<GcPointerEvent> | events | イベントの一覧 |
Returns
Type | Description |
---|---|
Boolean | 1つ以上 取得できたかどうか |
TryGetPointerEventAll(out ReadOnlySpan<GcPointerEvent>)
前回のフレーム処理以降に検出した ポインターイベント全てを取得します
Declaration
bool TryGetPointerEventAll(out ReadOnlySpan<GcPointerEvent> events)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<GcPointerEvent> | events | イベントの一覧 |
Returns
Type | Description |
---|---|
Boolean | 1つ以上 取得できたかどうか |
TryGetPointerTapPoint(Int32, out float2)
前回のフレーム処理以降に検出した タップポイントのうち、1つを取得します
Declaration
bool TryGetPointerTapPoint(in int i, out float2 point)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | タップインデックス |
float2 | point | タップポイント |
Returns
Type | Description |
---|---|
Boolean | 取得できたかどうか |
TryGetPointerTapPointAll(out ReadOnlySpan<float2>)
前回のフレーム処理以降に検出した タップポイント全てを取得します
Declaration
bool TryGetPointerTapPointAll(out ReadOnlySpan<float2> points)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<float2> | points | タップポイントの一覧 |
Returns
Type | Description |
---|---|
Boolean | 1つ以上 取得できたかどうか |
TryGetPointerTrace(GcPointerEventPhase, Int32, out GcPointerTrace)
現在有効なポインターのうち、1つの軌跡を取得します
Declaration
bool TryGetPointerTrace(in GcPointerEventPhase phase, in int i, out GcPointerTrace trace)
Parameters
Type | Name | Description |
---|---|---|
GcPointerEventPhase | phase | イベント状態 |
Int32 | i | イベントインデックス(イベントIDではない) |
GcPointerTrace | trace | 軌跡 |
Returns
Type | Description |
---|---|
Boolean | 取得できたかどうか |
Remarks
TryGetPointerTrace(Int32, out GcPointerTrace)
現在有効なポインターのうち、1つの軌跡を取得します
Declaration
bool TryGetPointerTrace(in int i, out GcPointerTrace trace)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | イベントインデックス(0 から PointerCount-1 までの連番。イベントIDではない) |
GcPointerTrace | trace | 軌跡 |
Returns
Type | Description |
---|---|
Boolean | 取得できたかどうか |
TryGetPointerTraceAll(GcPointerEventPhase, out ReadOnlySpan<GcPointerTrace>)
前回のフレーム処理以降に検出した 指定された状態のポインターの軌跡全てを取得します
Declaration
bool TryGetPointerTraceAll(in GcPointerEventPhase phase, out ReadOnlySpan<GcPointerTrace> traces)
Parameters
Type | Name | Description |
---|---|---|
GcPointerEventPhase | phase | |
ReadOnlySpan<GcPointerTrace> | traces | 軌跡の一覧 |
Returns
Type | Description |
---|---|
Boolean | 1つ以上 取得できたかどうか |
Remarks
TryGetPointerTraceAll(out ReadOnlySpan<GcPointerTrace>)
前回のフレーム処理以降に検出した ポインターの軌跡全てを取得します
Declaration
bool TryGetPointerTraceAll(out ReadOnlySpan<GcPointerTrace> traces)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<GcPointerTrace> | traces | 軌跡の一覧 |
Returns
Type | Description |
---|---|
Boolean | 1つ以上 取得できたかどうか |