26 #ifndef INCLUDED_EyeTrackerInterfaceC_h_GUID_F6C50F38_5C4F_41AD_B703_DE8A073F77B3
27 #define INCLUDED_EyeTrackerInterfaceC_h_GUID_F6C50F38_5C4F_41AD_B703_DE8A073F77B3
61 typedef struct OSVR_EyeTrackerDeviceInterfaceObject
93 OSVR_IN_PTR
OSVR_TimeValue const *timestamp) OSVR_FUNC_NONNULL((1, 4));
103 OSVR_PLUGINKIT_EXPORT
109 OSVR_IN_PTR
OSVR_TimeValue const *timestamp) OSVR_FUNC_NONNULL((1, 5));
118 OSVR_PLUGINKIT_EXPORT
123 OSVR_IN_PTR
OSVR_TimeValue const *timestamp) OSVR_FUNC_NONNULL((1, 4));
134 OSVR_PLUGINKIT_EXPORT
141 OSVR_IN_PTR
OSVR_TimeValue const *timestamp) OSVR_FUNC_NONNULL((1, 6));
150 OSVR_PLUGINKIT_EXPORT
154 OSVR_IN_PTR
OSVR_TimeValue const *timestamp) OSVR_FUNC_NONNULL((1, 4));
160 #endif // INCLUDED_EyeTrackerInterfaceC_h_GUID_F6C50F38_5C4F_41AD_B703_DE8A073F77B3
uint32_t OSVR_ChannelCount
The integer type specifying a number of channels/sensors or a channel/sensor index.
A structure defining a 3D vector, often a position/translation.
OSVR_ReturnCode osvrDeviceEyeTrackerReportBlink(OSVR_EyeTrackerDeviceInterface iface, OSVR_EyeTrackerBlinkState blink, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
Report the blink state.
OSVR_ReturnCode osvrDeviceEyeTrackerReport3DGazeDirection(OSVR_EyeTrackerDeviceInterface iface, OSVR_EyeGazeDirectionState gazeDirection, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
3D gaze direction for an eye
struct OSVR_EyeTrackerDeviceInterfaceObject * OSVR_EyeTrackerDeviceInterface
Opaque type used to send data on eye tracker interface (which internally is carried over several inte...
A structure defining a 2D vector, which represents position.
OSVR_ReturnCode osvrDeviceEyeTrackerConfigure(OSVR_DeviceInitOptions opts, OSVR_EyeTrackerDeviceInterface *iface, OSVR_ChannelCount numSensors)
Specify that your device will implement the Eye Tracker interface.
struct OSVR_DeviceInitObject * OSVR_DeviceInitOptions
Opaque type of a device initialization object.
OSVR_ReturnCode osvrDeviceEyeTrackerReportGaze(OSVR_EyeTrackerDeviceInterface iface, OSVR_EyeGazePosition2DState gazePosition, OSVR_EyeGazeDirectionState gazeDirection, OSVR_EyeGazeBasePoint3DState gazeBasePoint, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
Report both 2D and 3D gaze for an eye.
OSVR_ReturnCode osvrDeviceEyeTrackerReport3DGaze(OSVR_EyeTrackerDeviceInterface iface, OSVR_EyeGazeDirectionState gazeDirection, OSVR_EyeGazeBasePoint3DState gazeBasePoint, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
Report 3D gaze ray for an eye.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
OSVR_ButtonState OSVR_EyeTrackerBlinkState
State for a blink event.
OSVR_ReturnCode osvrDeviceEyeTrackerReport2DGaze(OSVR_EyeTrackerDeviceInterface iface, OSVR_EyeGazePosition2DState gazePosition, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
Report gaze position 2D for a sensor (eye) - each component normalized from 0 to 1, lower-left corner of the screen is (0, 0) with the screen extending along the positive axes.