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

# XGameStreamingHideTouchControls

> XGameStreamingHideTouchControls

# XGameStreamingHideTouchControls

接続されているすべてのストリーミング クライアント デバイスに対し、タッチ レイアウトが表示されている場合は非表示にするよう要求します。

## Syntax

```cpp theme={null}
void XGameStreamingHideTouchControls();
```

### Return value

型: void

## Remarks

この API は、接続されているすべてのゲーム ストリーミング クライアントに対し、表示されているタッチ オーバーレイ コントロールを削除するよう要求します。プレイヤーがゲームをストリーミングしていない場合、またはタッチ オーバーレイ コントロールを表示していないデバイスにストリーミングしている場合、この関数は何も行いません。

特定のタッチ コントロール レイアウトを表示するには、[XGameStreamingShowTouchControlLayout](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md) を呼び出します。

`XGameStreamingHideTouchControls` を呼び出すたびにネットワーク経由でメッセージが送信されるため、フレームごとに呼び出さないでください。代わりに、画面上に表示されているタッチ コントロールから遷移する必要がある場合にのみこの API を呼び出してください。

**特定の** 接続されているストリーミング クライアント デバイスでタッチ コントロール レイアウトを非表示にする必要がある場合は、代わりに [XGameStreamingHideTouchControlsOnClient](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrolsonclient.md) の使用を検討してください。

## Examples

```cpp theme={null}
void OnShowMenu()
{
    // This game has native touch support for the menu system, so hide touch overlay controls
    XGameStreamingHideTouchControls();
}

void OnDismissMenu()
{
    // Show the touch overlay controls which were previously on the screen before we hid them
    // due to bringing up the menu.
    XGameStreamingShowTouchControlLayout(m_currentTouchLayout);
}
```

## Requirements

**ヘッダー:** xgamestreaming.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

[XGameStreamingShowTouchControlLayout](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md)\
[XGameStreamingHideTouchControlsOnClient](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrolsonclient.md)\
[XGameStreaming](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md#TouchAdaptation)


## Related topics

- [XGameStreamingHideTouchControlsOnClient](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrolsonclient.md)
- [XGameStreamingShowTouchControlLayout](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md)
- [ゲーム状態に基づくタッチ コントロール レイアウトの変更](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-touch-changing-layouts-game-state.md)
- [XGameStreaming (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
