WaitSamplingAny

nn::hid::CTR::HidBase::WaitSamplingAny Member Function

Syntax

static s32 WaitSamplingAny(
     HidBase * devices[],
     s32 numDevices,
     nn::fnd::TimeSpan timeout
);

Parameters

Name Description
in devices[] Specifies an array of HidBase objects.
in numDevices Specifies the number of HidBase objects.
in timeout Specifies the timeout period.

Return Values

Returns the result of the operation.
Value Description
0 or higher Returns the index of the sampled device.
Below 0 Indicates that a timeout has occurred.

Description

Waits for one of the devices specified in the arguments to be sampled while using a timeout period.


CONFIDENTIAL