Controller Class

Represents a controller object, which can refer to anything that can control the console such as a gamepad, wheel, magic wand, NUI skeleton, smartglass device, media remote, etc.

Syntax

public ref class Controller sealed : IController  

Remarks

Use the Controller class to associate any controller with a user (IController has a User property) or get the Id of the controller (IController has an Id property). Controller[0] may or may not refer to a gamepad.

To find a gamepad, use the Gamepads property in the Gamepad class. Gamepad::Gamepads[0] will always refer to a gamepad.

Note

This class makes cross-OS calls. For more information, see Cross-OS Calls.

Requirements

Namespace: Windows.Xbox.Input

Metadata: windows.winmd

See also

Overview

Users

How to: Enumerate Controllers

White Paper: Users, Controllers, and Pairing: Identity on Xbox One (Developer Education Materials > All NDA Whitepapers)

Reference

Controller Members

Windows.Xbox.Input Namespace