CoreIndependentInputSourceController 類別

定義

表示物件,該物件會為相關聯的視覺物件建立 CoreIndependentInputSource,並管理該來源所收到的輸入。

public ref class CoreIndependentInputSourceController sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CoreIndependentInputSourceController final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CoreIndependentInputSourceController : System.IDisposable
Public NotInheritable Class CoreIndependentInputSourceController
Implements IDisposable
繼承
Object Platform::Object IInspectable CoreIndependentInputSourceController
屬性
實作

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)

備註

控制器 輸入來源 所引發的輸入事件會在建立控制器的執行緒上發生。

屬性

IsPalmRejectionEnabled

取得或設定使用畫筆時,是否使用增強型邏輯來偵測意外觸控輸入。

IsTransparentForUncontrolledInput

取得或設定是否應該將與控制器輸入來源相關聯的視覺效果視為透明,以供目前未設定為傳遞至控制器的輸入。

Source

取得與 CoreIndependentInputSourceController相關聯的輸入來源物件。

方法

Close()

關閉 CoreIndependentInputSourceController 實例,並釋放已配置的資源。

CreateForIVisualElement(IVisualElement)

為指定的IVisualElement建立CoreIndependentInputSourceController

CreateForVisual(Visual)

為指定的Visual建立CoreIndependentInputSourceController

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

SetControlledInput(CoreInputDeviceTypes)

識別應該傳遞至CoreIndependentInputSourceController相關聯之輸入來源的CoreInputDeviceTypes

SetControlledInput(CoreInputDeviceTypes, CoreIndependentInputFilters, CoreIndependentInputFilters)

根據指定的篩選,識別應該傳遞至與 CoreIndependentInputSourceController相關聯之輸入來源的CoreInputDeviceTypes

適用於

另請參閱