Skip to content

Get current Gaze PointerState Β #2942

@niels9001

Description

@niels9001

Current behavior

There doesn't seem to be a way to get the current PointerState from code behind. We only have the StateChanged event that will give back the PointerState.

Expected behavior

The Tobii WPF SDK provides a GetHasGaze() function that tells you if the UI element has Gaze or not. In our case, the PointerState would be nice value to get returned.

This would allow for conditional functionality such as enabling certain things if the user's gaze is on a specific UI element.

E.g.

private void NormalButton_Click(object sender, RoutedEventArgs e)
{
if (GazeButton.PointerState == PointerState.Enter)
{
// DO SOMETHING
}
}

Minimal reproduction of the problem with instructions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions