Skip to main content

XGameStreamingIsTouchInputEnabled

Check if a specified streaming client device will send touch inputs to the game.

Syntax

Parameters

client   _In_
Type: XGameStreamingClientId
The client to query for touch properties. touchInputEnabled   _Out_
Type: bool*
Returns true if the streaming client device is both capable of receiving touch input AND is currently configured to pass the touch input to the game.

Return value

Type: HRESULT Returns S_OK if successful; otherwise, returns an error code.

Potential Errors

For a list of error codes, see Error Codes.

Remarks

By default, only when streaming via Content Test Application on a touch capable device will XGameStreamingIsTouchInputEnabled return true. Until your game has been configured to enable touch input, no production players will have touch input enabled on their client streaming. If the game wants to respond to changes in touch input being enabled or disabled, it should register a callback via XGameStreamingRegisterClientPropertiesChanged.

Requirements

Header: xgamestreaming.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XGameStreamingClientPropertiesChangedCallback
XGameStreamingRegisterClientPropertiesChanged
XGameStreaming
Last modified on August 20, 2026