Syntax
Parameters
surfaceIndex   _In_Type: uint32_t Index of the touch surface. Must be less than the value returned by IGameInputDevice::GetTouchSurfaceCount.
Return value
Type: uint32_t The number of contacts on the touch surface in this reading. Returns 0 if the reading doesn’t contain touch data or if surfaceIndex isn’t a valid surface index.Remarks
Use this method to size the array that’s passed to IGameInputReading::GetTouchSurfaceState. CallingGetTouchSurfaceState with a null contact array also returns the number of contacts. To allocate an array that’s large enough for any reading, use the maxContactCount member of GameInputTouchSurfaceInfo.
Readings that contain touch data include GameInputKindTouch in IGameInputReading::GetInputKind.
Touch support depends on the device and the platform.
Requirements
Header: GameInput.h Library: gameinput.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
Overview of GameInputIGameInputReading
IGameInputReading::GetTouchSurfaceState
IGameInputDevice::GetTouchSurfaceInfo
GameInputTouchContact
