Home › Forums › Software Development › Trigger Button Press via Gaze
- This topic has 5 replies, 2 voices, and was last updated 2 years, 8 months ago by
Grant [Tobii].
- AuthorPosts
- 17/04/2018 at 22:29 #8129
Anonymous
InactiveHey Guys,
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?kind regards
David18/04/2018 at 11:35 #8133Alex [Tobii]
ParticipantH @dabinder !
You can trigger “Activate” event using following code:
host.Commands.Input.SendActivationModeOn(); host.Commands.Input.SendActivation(); host.Commands.Input.SendActivationModeOff();
https://tobii.github.io/CoreSDK/articles/interactors.html
It might also be interesting to look at some existing virtual keyboard projects:
https://github.com/OptiKey/OptiKey/wiki19/04/2018 at 08:52 #8142Anonymous
InactiveHow can I specify, at which button I viewed?
19/04/2018 at 09:46 #8143Alex [Tobii]
ParticipantI 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 #19668Emy
ParticipantHello! The link above doesn’t work.
11/01/2021 at 11:25 #19675Grant [Tobii]
KeymasterHi Emy, the Tobii Core SDK has since been deprecated and replaced by the new Tobii Interaction Library API which has support for C# & C++
You can download the package and view our getting started guide @
Check it out and let us know how you get on! Best Wishes.
- AuthorPosts
- You must be logged in to reply to this topic.