pub unsafe extern "C" fn LeapPollConnection(
    hConnection: LEAP_CONNECTION,
    timeout: u32,
    evt: *mut LEAP_CONNECTION_MESSAGE
) -> eLeapRS
Expand description

\ingroup Functions Polls the connection for a new event.

The specific types of events that may be received are not configurable in this entrypoint. Configure the device or connection object directly to change what events will be received.

Pointers in the retrieved event message structure will be valid until the associated connection or device is closed, or the next call to LeapPollConnection().

Calling this method concurrently will return eLeapRS_ConcurrentPoll.

@param hConnection The connection handle created by LeapCreateConnection(). @param timeout The maximum amount of time to wait, in milliseconds. If this value is zero, the evt pointer references the next queued message, if there is one, and returns immediately. @param[out] evt A pointer to a structure that is filled with event information. This structure will be valid as long as the LEAP_CONNECTION object is valid.

@returns The operation result code, a member of the eLeapRS enumeration. If the operation times out, this method will return eLeapRS_Timeout. The evt pointer will reference a message of type eLeapEventType_None. @since 3.0.0