- 17/04/2018 at 22:29 #8129AnonymousInactive
i am kinda new to C# and this is also my first time playing around with the Tobii EyeX Eye Tracker.
I want to Design a virutal Keyboard, which should be controlled via Gaze.
I already Designed a WPF Layout with some Buttons, which have the IsGazeAware Enabled and a Delay Time which represent a so called “dwell time”, so that the button will only be “pressed” after gazing for e.g 1000ms.
My Question now is: how can i “trigger” a button press. Can i somehow call a method in the <Trigger> Tag, that e.g prints a letter in my textbox or so?
Or is there any better way to do it?
David18/04/2018 at 11:35 #8133Alex [Tobii]Participant
H @dabinder !
You can trigger “Activate” event using following code:
host.Commands.Input.SendActivationModeOn(); host.Commands.Input.SendActivation(); host.Commands.Input.SendActivationModeOff();
It might also be interesting to look at some existing virtual keyboard projects:
https://github.com/OptiKey/OptiKey/wiki19/04/2018 at 08:52 #8142AnonymousInactive
How can I specify, at which button I viewed?19/04/2018 at 09:46 #8143Alex [Tobii]Participant
I will understand it automatically if the button is marked as gaze aware:
https://tobii.github.io/CoreSDK/articles/wpf.html10/01/2021 at 11:41 #19668EmyParticipant
Hello! The link above doesn’t work.11/01/2021 at 11:25 #19675
- You must be logged in to reply to this topic.