Home Forums Software Development Add new keys and actions in C#

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #597
    William
    Participant

    Hello,

    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…

    #599
    Robert [Tobii]
    Participant

    Hello,

    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.html

    For other Windows development, check this article:
    http://blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspx

    #600
    William
    Participant

    Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.