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

# XGameStreamingTouchControlsStateValue

> XGameStreamingTouchControlsStateValue

Specifies the type and value of a specific element of touch control state.

## Syntax

```cpp theme={null}
struct XGameStreamingTouchControlsStateValue {
    XGameStreamingTouchControlsStateValueKind valueKind;
        union
        {
            bool booleanValue;
            int64_t integerValue;
            double doubleValue;
            const char* stringValue;
        };
};
```

### Members

*valueKind*\
Type: [XGameStreamingTouchControlsStateValueKind](https://docs.xbox.com/reference/system/xgamestreaming/enums/xgamestreamingtouchcontrolsstatevaluekind.md)

The type of the specific element of touch control state.

*booleanValue*\
Type: bool

The boolean value to be applied.

*integerValue*\
Type: int64\_t

The integer value to be applied.

*doubleValue*\
Type: double

The double value to be applied.

*stringValue*\
Type: const char\*

The string value to be applied.

## Remarks

You use this structure to provide the type and value of a specific element of touch control state.

You should provide just a single value that represents the type of the variable being modified.

If you specify an incorrect value type, then it causes a runtime error, returned when using either [XGameStreamingShowTouchControlsWithStateUpdate](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrolswithstateupdate.md) or [XGameStreamingShowTouchControlsWithStateUpdateOnClient](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrolswithstateupdateonclient.md).

## Requirements

**Header:** XGameStreaming.h

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

## See also

[XGameStreaming](https://docs.xbox.com/reference/system/xgamestreaming/xgamestreaming_members.md)\
[XGameStreamingTouchControlsStateOperationKind](https://docs.xbox.com/reference/system/xgamestreaming/enums/xgamestreamingtouchcontrolsstateoperationkind.md)\
[XGameStreamingTouchControlsStateOperation](https://docs.xbox.com/reference/system/xgamestreaming/structs/xgamestreamingtouchcontrolsstateoperation.md)\
[XGameStreamingUpdateTouchControlsState](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingupdatetouchcontrolsstate.md)\
[XGameStreamingUpdateTouchControlsStateOnClient](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingupdatetouchcontrolsstateonclient.md)\
[XGameStreamingShowTouchControlsWithStateUpdate](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrolswithstateupdate.md)\
[XGameStreamingShowTouchControlsWithStateUpdateOnClient](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrolswithstateupdateonclient.md)


## Related topics

- [XGameStreamingTouchControlsStateValueKind](https://docs.xbox.com/reference/system/xgamestreaming/enums/xgamestreamingtouchcontrolsstatevaluekind.md)
- [XGameStreamingTouchControlsStateOperation](https://docs.xbox.com/reference/system/xgamestreaming/structs/xgamestreamingtouchcontrolsstateoperation.md)
- [XGameStreamingUpdateTouchControlsState](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingupdatetouchcontrolsstate.md)
- [XGameStreamingUpdateTouchControlsStateOnClient](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingupdatetouchcontrolsstateonclient.md)
- [XGameStreamingTouchControlsStateOperationKind](https://docs.xbox.com/reference/system/xgamestreaming/enums/xgamestreamingtouchcontrolsstateoperationkind.md)
