How to use the listen function from gaze

Find comprehensive JavaScript gaze.listen code examples handpicked from public code repositorys.

10
11
12
13
14
15
16
17
18
19
var gaze = require('gaze');

gaze.setup(function(status) {
  if(status.can_track_eyes && status.ready) {
    // ready!
    gaze.listen();
  } else if(status.calibration_needed || status.screen_setup_needed) {
    // calibraiton needed
  } else if(status.configuring) {
    // calibration in progress
fork icon2
star icon4
watch icon2