InjectedInputPenInfo.Rotation 属性

定义

获取或设置指针的顺时针旋转或扭曲。

public:
 property double Rotation { double get(); void set(double value); };
double Rotation();

void Rotation(double value);
public double Rotation { get; set; }
var double = injectedInputPenInfo.rotation;
injectedInputPenInfo.rotation = double;
Public Property Rotation As Double

属性值

Double

double

指针的顺时针旋转或扭曲,规范化为 0 到 359 之间的范围。 默认值为 0。

示例

下面是一些演示基本输入和输入注入的可下载示例:

注解

重要

此命名空间中的 API 需要 inputInjectionBrokered 受限功能

使用输入注入需要将以下内容添加到 Package.appxmanifest:

  • <Package>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • <Capabilities>
    • <rescap:Capability Name="inputInjectionBrokered" />

适用于

另请参阅