Share via


Windows.Gaming.Input Namespace

Provides access to game controller input for Windows applications.

Classes

ArcadeStick

Represents an arcade stick.

FlightStick

Represents a flight stick.

Gamepad

Represents a gamepad.

Headset

Contains information about an audio headset attached to a gamepad.

RacingWheel

Represents a racing wheel.

RawGameController

Represents any type of game controller.

UINavigationController

Represents a controller of any type that can be used for UI navigation. Most gamepads, arcade sticks, and racing wheels can also be accessed as a UINavigationController. It is recommended that games use the controller-specific class during gameplay and the UINavigationController class for UI menus.

Structs

ArcadeStickReading

The current state of the arcade stick.

FlightStickReading

The current state of the flight stick.

GamepadReading

Represents the current state of the gamepad.

GamepadVibration

Describes the speed of the gamepad's four available vibration motors.

RacingWheelReading

Represents the current state of the racing wheel.

UINavigationReading

Represents the current state of the UI navigation controller.

Interfaces

IGameController

The core interface required to be implemented by all controller devices, regardless of their actual type (gamepad, racing wheel, flight stick, and so on). This interface exists mainly to support extensibility for game controllers, which allows OEMs (Original Equipment Manufacturers) to publish WinRT (Windows Runtime) classes that provide rich access to their device's features, while integrating into the underlying game controller device enumeration framework.

IGameControllerBatteryInfo

Interface that allows game controller (or headset) classes to query for information about the current battery state, regardless of their actual type (gamepad, racing wheel, flight stick, and so on).

Enums

ArcadeStickButtons

Specifies the button type for an arcade stick.

FlightStickButtons

Specifies the type of flight stick button.

GameControllerButtonLabel

Label that appears on the physical controller button.

GameControllerSwitchKind

The type of switch on the game controller.

GameControllerSwitchPosition

The position of the game controller's switch.

GamepadButtons

Specifies the button type.

OptionalUINavigationButtons

Specifies additional buttons that may be available on a controller that appears as a navigation controller.

RacingWheelButtons

Specifies the racing wheel button type.

RequiredUINavigationButtons

Specifies the buttons that are required to be available on a controller that appears as a navigation controller.

Remarks

A Windows application must have focus to receive input from a controller.

Important

Legacy Win32 console applications should use the XInput Game Controller APIs instead.

See also