Home › Forums › Software Development › Add new keys and actions in C#
- This topic has 2 replies, 2 voices, and was last updated 9 years, 2 months ago by
William.
- AuthorPosts
- 24/03/2014 at 10:49 #597
William
ParticipantHello,
I use Tobii Rex and develop with C#.
Is it possible to add new keys from keyboard for new specific actions ?
like :
“press k” for “activate special effect 1” and
“press m” for “activate special effect 2”.Can I do that with the SDK ? or I must do it from scratch ?
Are there documentations about that ? I have already read “Developer’s Guide for Unity” and there are nothing about it.
Can you help me ?
Thanks
Have a good day
PS : sorry for my english…
24/03/2014 at 11:27 #599Robert [Tobii]
ParticipantHello,
Right now there is no support for adding additional key bindings in the EyeX SDK. The best way to accomplish this is to use the Gaze-aware behavior to understand which object the user is looking at, then hook up the keys yourself to perform different actions on the looked-at object.
If you are using Unity, the GetKey or GetButton functions are useful.
https://docs.unity3d.com/Documentation/ScriptReference/Input.GetKey.htmlFor other Windows development, check this article:
http://blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspx24/03/2014 at 11:48 #600William
ParticipantThank you
- AuthorPosts
- You must be logged in to reply to this topic.