Gamepad2.IsTrusted Property

Determines whether a connected gamepad is a trusted device.

Syntax

public:
property bool IsTrusted {
         bool get ();
}  

Property value

Type: bool  

True if the connected gamepad is a trusted device, false otherwise.

Remarks

This property informs developers whether the gamepad input appears to be coming from a real gamepad or a potential competitive advantage device.

Note

This is a cross-OS call. For more information, see Cross-OS Calls.

Detection and Triggering

The detection of conversion devices involves many factors, one of them being input behavior profiling. This profiling works in the following conditions:

  1. The connected device is wired, as is the case in all input conversion device usages.
  2. The device is used in a game, and keyboard + mouse converted input is generated for a duration of roughly 5-10 minutes (cumulative). The overall Timing depends on how much user input is generated, so the IsTrusted flag could trigger sooner or later than the 5-10 minute window, however, on average, it usually takes between 5-10 minutes.
    1. The input behavior profiling is not done in the system, non-game applications, or during System UI overlays on top of games.
  3. Once enough input is generated and meets the criteria of an untrusted device, the IsTrusted property will return false until the following:
    1. The device disconnects and reconnects over a wireless connection.
      1. Wireless security, encryption, and other mechanisms make this challenging space for input conversion.
    2. Valid gamepad usage over USB is profiled for another 5-10 minutes and is deemed trusted.

Handling Untrusted Devices

You can choose how and when to enforce the handling of untrusted gamepads. For example, some games may want to allow input conversion devices in single player experiences, but not in multiplayer ones. Other games may choose to not allow them altogether.

Requirements

Namespace: Windows.Xbox.Input

Metadata: windows.winmd

See also

Reference

IGamepad2 Class

IGamepad2 Members

Windows.Xbox.Input Namespace