共用方式為


SpatialInteractionSourceState.IsSelectPressed 屬性

定義

取得手部或動作控制器是否遇到主要 Select 按下。

public:
 property bool IsSelectPressed { bool get(); };
bool IsSelectPressed();
public bool IsSelectPressed { get; }
var boolean = spatialInteractionSourceState.isSelectPressed;
Public ReadOnly Property IsSelectPressed As Boolean

屬性值

Boolean

bool

來源是否遇到 Select press。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

選取代表空間互動來源的主要按下:

  • 針對手部,Select 按下代表使用者位於向下位置的索引指。
  • 對於運動控制器,如果未完全按下) 觸發程式,則 Select press 代表控制器的索引指觸發程式 (或主要臉部按鈕。
  • 針對語音,Select press 代表使用者說出系統關鍵字 「Select」。

請注意,語音 「選取」會導致立即按下並放開,因此您無法使用 IsPressed、IsSelectPressed 或 SelectPressedValue 輪詢語音按下。 請改用 SpatialGestureRecognizer 並處理 Tapped 事件,或處理 SourcePressed 事件。

適用於