> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameStreamingIsTouchInputEnabled

> XGameStreamingIsTouchInputEnabled

# XGameStreamingIsTouchInputEnabled

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

## Syntax

```cpp theme={null}
HRESULT XGameStreamingIsTouchInputEnabled(  
         XGameStreamingClientId client,  
         bool* touchInputEnabled  
)  
```

### 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

| Error Code                               | Error Value | Reason for Error                                                                                                                                                                     |
| ---------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| E\_GAMESTREAMING\_NOT\_INITIALIZED       | 0x89245400  | The XGameStreaming runtime has not been initialized. Call [XGameStreamingInitialize](/reference/system/xgamestreaming/functions/xgamestreaminginitialize) before calling other APIs. |
| E\_GAMESTREAMING\_CLIENT\_NOT\_CONNECTED | 0x89245401  | The specified client is not connected.                                                                                                                                               |
| E\_GAMESTREAMING\_NO\_DATA               | 0x89245402  | The requested data is not available. The data may be available later.                                                                                                                |

For a list of error codes, see [Error Codes](/reference/errorcodes).

## 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](/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged).

## Requirements

**Header:** xgamestreaming.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XGameStreamingClientPropertiesChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback)\
[XGameStreamingRegisterClientPropertiesChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged)\
[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)


## Related topics

- [XGameStreamingClientProperty](/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md)
- [XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Getting started with touch](/build/core-features/common/game-streaming/game-streaming-getting-started-with-touch.md)
- [Content Test Application (CTA) Stream Configuration Overview](/build/core-features/common/game-streaming/game-streaming-content-test-application-stream-config.md)
- [Preview Touch Adaptation Layouts](/build/core-features/common/game-streaming/tak-editor/game-streaming-tak-editor-preview-layouts.md)
