Tobii 4C not acting like proper mouse in FPS game

Post Reply
lyte
One Eyed Hopeful
Posts: 1
Joined: Sat Dec 01, 2018 1:00 pm

Tobii 4C not acting like proper mouse in FPS game

Post by lyte »

I am trying to get a script to work with a Single Player game called Lovely Planet. The script will run, but nothing happens as soon as the game is operating. The character will not move. If I press ESC, the mouse will respond to FREEPie, but when I resume the game, it does nothing. Does FREEPie not override the mouse/replace desktop mouse? Does it need a different Authority to run ALL programs like a mouse? Here is the script by Centuri0n that I'm using :

Code: Select all

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
      user32.SetCursorPos(int(posx),int(posy))
      
      
   diagnostics.watch(enabled)
   diagnostics.watch(posx)
   diagnostics.watch(posy)
   
      
if starting:
   enabled = True
   tobiiEyeX.update += update
   
toggle = keyboard.getPressed(Key.F4)

if toggle:
   enabled = not enabled
Thank you in advance!

Post Reply

Return to “General Hardware & Software Technical Support”