It is currently Sun Aug 18, 2019 9:25 am

Reply to topic  [ 2 posts ] 
 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
One Eyed Hopeful

Joined: Sun Dec 09, 2018 5:03 am
Posts: 1
Reply with quote
Does the freepie tobii plugin able to detect single eye squinting/wink? or blinking given X miliseconds of dwelling(time taken to gaze on a spot) time? I saw it is implemented in software called IRIS but is not very programmable. I want to use the blink and squint/wink to do some macro.

If you imagine like squinting my left eye for 1 secs to trigger a zoom scope. something like that.
I always thought of Tobii as programmable utility rather than just for gaming purposes to improved its overall usefulness and im currently trying to start a youtube channel to inspire disabled gamers to use some tech stuff to play some games.

Sun Dec 09, 2018 5:18 am
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

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.