Function QTMU_GetTrackingDataEx

Source
pub unsafe extern "C" fn QTMU_GetTrackingDataEx(
    outData: *mut QtmTrackingData,
    predictionTimePointOrZero: s64,
) -> Result
Expand description

Gets the current normalized eye tracking data, made suitable for 3D programming with an optional prediction made for predictionTimePointOrZero = t+dt, or for the current time point (QTM makes predictions based on gyro data since inner camera runs at 30 FPS).

§Arguments

  • outData (direction out) - Where to write the raw tracking data to. Cleared to all-zero on failure (instead of being left uninitialized).
  • predictionTimePointOrZero - Either zero, or the time point (in system ticks) for which to make a prediction for. Maximum 1 frame (at 30 FPS) in the past, and up to 5 frames in the future.

§Returns

0xC8A18008 if camera is in use by user, or 0xC8A183EF if QTM is unavailable (in particular, QTM is always unavailable on N2DSXL). Otherwise, 0 (success). Return value should be checked by caller.

Note: This can, for example, be used in games to allow the user to control the scene’s camera with their own face.