Details
class EyeVecWrapper
This class is just for convenience for developers who prefer a C++ interface
rather than a C interface. This header-only class encapsulates an
EyeVec object and provides all functions (except
those related to threading, waitable and event processing) as class methods.
The class methods provide defaults where appropriate, uses references where
the C interface uses pointers and uses std::string
where the C interface uses
plain character buffers.
You can use this class directly as a convenient wrapper for an EyeVec
object
created using eyevec_create(), or use
one of the subclasses listed below instead.
class EyeVecWaitable
This class implements the waitable interface. You can use this class if you
want to monitor the eye-tracker (e.g. using poll(2)
, select(2)
,
WaitForSingleObject()
, WaitForMultipleObjects()
) in your application’s
event-loop and process eye-tracker events when they come in.
To use this class copy the header and source file into your source tree and complete the desired event handling methods as you see fit.
See: EyeVecWaitable example program in the Examples section
class EyeVecThreaded
This class implements the threaded interface. You can use this class if you want to use a separate thread to monitor the eye-tracker and process eye-tracker events from the thread.
To use this class copy the header and source file into your source tree and complete the desired event handling methods as you see fit.
See: EyeVecThreaded example program in the Examples section