Application.RequiresPointerMode Property

Definition

Gets or sets whether a UWP app supports mouse mode, which emulates pointer interaction experiences with non-pointer input devices such as an game pad or remote control. (All nested elements inherit this behavior.)

public:
 property ApplicationRequiresPointerMode RequiresPointerMode { ApplicationRequiresPointerMode get(); void set(ApplicationRequiresPointerMode value); };
ApplicationRequiresPointerMode RequiresPointerMode();

void RequiresPointerMode(ApplicationRequiresPointerMode value);
public ApplicationRequiresPointerMode RequiresPointerMode { get; set; }
var applicationRequiresPointerMode = application.requiresPointerMode;
application.requiresPointerMode = applicationRequiresPointerMode;
Public Property RequiresPointerMode As ApplicationRequiresPointerMode

Property Value

The pointer emulation mode. The default is Auto (the default system experience for the input device).

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

For non-pointer input devices, focus is moved between controls through a variety of methods, such as the Tab and arrow keys on a keyboard, the directional pad (D-pad) on a remote, or thumb sticks on a controller. For some user experiences, such as maps and drawing surfaces, it is not possible or practical to use XY focus navigation. RequiresPointerMode enables an app to provide a more pointer-like interaction experience through a cursor that can be moved freely using the game input devices.

RequiresPointerMode is supported only on the Xbox device family, and only when using a game pad or remote control. The property is ignored otherwise.

RequiresPointer sets mouse mode at the UI element level.

For more info, see the Mouse mode section of Designing for Xbox and TV.

Applies to

See also