It is currently Fri Nov 16, 2018 1:51 am

Reply to topic  [ 1 post ] 
 Tobii Eyetracker Mouse emulation 
Author Message
One Eyed Hopeful

Joined: Fri Jan 25, 2008 12:28 pm
Posts: 6
Reply with quote
Spend some hours to figure out, how to move mouse pointer with just a gaze (for Tobii Eyetracker)

You'll need only FreePIE and this script:

from ctypes import *
user32 = windll.user32

def update():
   global enabled
   looking = tobiiEyeX.userPresence == "Present" and enabled
   if (looking and enabled):
      posx = tobiiEyeX.gazePointInPixelsX
      posy = tobiiEyeX.gazePointInPixelsY

if starting:
   enabled = True
   tobiiEyeX.update += update
toggle = keyboard.getPressed(Key.F4)

if toggle:
   enabled = not enabled

F4 toggles mouse following gaze mode.

Correct yourself for your needs.

Sun Oct 14, 2018 4:26 pm
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.