InjectedInputGamepadInfo InjectedInputGamepadInfo InjectedInputGamepadInfo InjectedInputGamepadInfo Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents programmatically generated gamepad input.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : sealed class InjectedInputGamepadInfo : IInjectedInputGamepadInfopublic sealed class InjectedInputGamepadInfo : IInjectedInputGamepadInfoPublic NotInheritable Class InjectedInputGamepadInfo Implements IInjectedInputGamepadInfo// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

Constructors

InjectedInputGamepadInfo() InjectedInputGamepadInfo() InjectedInputGamepadInfo() InjectedInputGamepadInfo()

Prerelease. Creates a new InjectedInputGamepadInfo object that is used to specify the gamepad input to inject.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputGamepadInfo()public InjectedInputGamepadInfo()Public Sub New()// You can use this method in JavaScript.

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

InjectedInputGamepadInfo(GamepadReading) InjectedInputGamepadInfo(GamepadReading) InjectedInputGamepadInfo(GamepadReading) InjectedInputGamepadInfo(GamepadReading)

Prerelease. Creates a new InjectedInputGamepadInfo object that is used to specify the gamepad input to inject based on the current state of the gamepad.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputGamepadInfo(GamepadReading reading)public InjectedInputGamepadInfo(GamepadReading reading)Public Sub New(reading As GamepadReading)// You can use this method in JavaScript.
Parameters
reading
GamepadReading GamepadReading GamepadReading GamepadReading

The current state of the gamepad.

Note

The Timestamp value is replaced with the current time of input injection.

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

Properties

Buttons Buttons Buttons Buttons

Prerelease. Gets or sets the the gamepad buttons used for input injection.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : GamepadButtons Buttons { get; set; }public GamepadButtons Buttons { get; set; }Public ReadWrite Property Buttons As GamepadButtons// You can use this property in JavaScript.
Value
GamepadButtons GamepadButtons GamepadButtons GamepadButtons

One or more gamepad buttons used for input injection.

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

LeftThumbstickX LeftThumbstickX LeftThumbstickX LeftThumbstickX

Prerelease. Gets or sets the position of the left stick on the X-axis.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double LeftThumbstickX { get; set; }public double LeftThumbstickX { get; set; }Public ReadWrite Property LeftThumbstickX As double// You can use this property in JavaScript.
Value
double double double double

A value between -1.0 (pressed to the left) and 1.0 (pressed to the right).

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

LeftThumbstickY LeftThumbstickY LeftThumbstickY LeftThumbstickY

Prerelease. Gets or sets the position of the left stick on the Y-axis.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double LeftThumbstickY { get; set; }public double LeftThumbstickY { get; set; }Public ReadWrite Property LeftThumbstickY As double// You can use this property in JavaScript.
Value
double double double double

A value between -1.0 (pressed towards the user) and 1.0 (pressed away from the user).

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

LeftTrigger LeftTrigger LeftTrigger LeftTrigger

Prerelease. Gets or sets the position of the left trigger.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double LeftTrigger { get; set; }public double LeftTrigger { get; set; }Public ReadWrite Property LeftTrigger As double// You can use this property in JavaScript.
Value
double double double double

A value between 0.0 (not depressed) and 1.0 (fully depressed).

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

RightThumbstickX RightThumbstickX RightThumbstickX RightThumbstickX

Prerelease. Gets or sets the position of the right stick on the X-axis.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double RightThumbstickX { get; set; }public double RightThumbstickX { get; set; }Public ReadWrite Property RightThumbstickX As double// You can use this property in JavaScript.
Value
double double double double

A value between -1.0 (pressed to the left) and 1.0 (pressed to the right).

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

RightThumbstickY RightThumbstickY RightThumbstickY RightThumbstickY

Prerelease. Gets or sets the position of the right stick on the Y-axis.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double RightThumbstickY { get; set; }public double RightThumbstickY { get; set; }Public ReadWrite Property RightThumbstickY As double// You can use this property in JavaScript.
Value
double double double double

A value between -1.0 (pressed towards the user) and 1.0 (pressed away from the user).

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />

RightTrigger RightTrigger RightTrigger RightTrigger

Prerelease. Gets or sets the position of the right trigger.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double RightTrigger { get; set; }public double RightTrigger { get; set; }Public ReadWrite Property RightTrigger As double// You can use this property in JavaScript.
Value
double double double double

A value between 0.0 (not depressed) and 1.0 (fully depressed).

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>

    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

    • IgnorableNamespaces="rescap"

  • To <Capabilities>

    • <rescap:Capability Name="inputInjectionBrokered" />