IGameInputReading::GetTouchCount

Note

This function is only supported if both XGameStreamingIsStreaming and XGameStreamingIsTouchEnabled are both returning true.

Retrieves the number of touch points on a game controller.

Syntax

uint32_t GetTouchCount(  
)  

Parameters

This method has no parameters.

Return value

Type: uint32_t

Returns the number of touch points on a game controller.

Remarks

The IGameInputReading::GetTouchCount method retrieves the number of touch points for a game controller. It is used to determine the number of arrays needed for IGameInputReading::GetTouchState method. For intermediate and advanced use-cases of the GameInput API, see Advanced GameInput topics.

Requirements

Header: GameInput.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

Overview of GameInput
IGameInputReading