eyetracker.trainOnMouseMove

getEyeTracker(id).trainOnMouseMove() (since PennController 1.8)

or getEyeTracker(id).trainOnMouseMove(false) (since PennController 1.8)

Tells the model to use mouse movements for its estimations or, if you pass false, to NOT use them.

Use this command after calling train.

Example:

[js highlight=”7″ try=”data”]newTrial( newButton(“Start”).print().wait(newEyeTracker().test.ready()) )

newTrial(
newEyeTracker(“tracker”)
.calibrate(70)
.train(true)
.trainOnMouseMove(false)
,
newButton(“Click here first”).print(“20vw”,”40vh”).wait().remove(),
newButton(“Now Click here”).print(“60vw”,”40vh”).wait().remove()
,
newText(“Left”).css(“padding”,”20vw”).print(“20vw”, “40vh”),
newText(“Right”).css(“padding”,”20vw”).print(“60vw”, “40vh”)
,
getEyeTracker(“tracker”)
.stopTraining()
.add( getText(“Left”) , getText(“Right”) )
,
newSelector().add( getText(“Left”) , getText(“Right”) ).wait()
)[/js]

Will keep training the model after calibration but will only use the mouse clicks on the buttons, and NOT the mouse movements toward them, to refine the model.

Published by Jeremy

Researcher in semantics and pragmatics; Programmer of PennController for IBEX