-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorfeature 💡feature request 📬A request for new changes to improve functionalityA request for new changes to improve functionalitygaze 👀improvements ✨
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorfeature 💡feature request 📬A request for new changes to improve functionalityA request for new changes to improve functionalitygaze 👀improvements ✨
Type
Projects
Status
Done