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

# XGameStreamingHideTouchControls

> XGameStreamingHideTouchControls

# XGameStreamingHideTouchControls

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

## Syntax

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

### Return value

型: void

## Remarks

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

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

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

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

## 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](/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout)\
[XGameStreamingHideTouchControlsOnClient](/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrolsonclient)\
[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members#TouchAdaptation)


## Related topics

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