-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gaze plus switch support #2270
Conversation
Support is currently using any keyboard button
Allow for arbitrary concept of switch, such that it could come from any source
@@ -109,6 +116,7 @@ DependencyProperty^ GazeInput::RepeatDelayDurationProperty::get() { return s_rep | |||
DependencyProperty^ GazeInput::DwellRepeatDurationProperty::get() { return s_dwellRepeatDurationProperty; } | |||
DependencyProperty^ GazeInput::ThresholdDurationProperty::get() { return s_thresholdDurationProperty; } | |||
DependencyProperty^ GazeInput::MaxDwellRepeatCountProperty::get() { return s_maxRepeatCountProperty; } | |||
DependencyProperty^ GazeInput::IsSwitchEnabled::get() { return s_isSwitchEnabled; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps rename IsSwitchEnabled and s_isSwitchEnabled to IsSwichEnabledProperty and s_isSwitchEnabledProperty. There are conventions expected and sometimes enforced around the naming of these things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing - good catch.
@@ -50,6 +53,13 @@ public void OnXamlRendered(FrameworkElement control) | |||
gazeButtonControl.StateChanged += GazeButtonControl_StateChanged; | |||
} | |||
} | |||
|
|||
gazePointer = GazeInput.GetGazePointer(control.FindParent<Page>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at how GetGazePointer is implemented! GetGazePointer(null) might be better, or GetGazePointer(this).
Issue: #2269
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Gaze plus switch is not available.
What is the new behavior?
Gaze plus switch is now available
PR Checklist
Please check if your PR fulfills the following requirements:
Other information