Skip to content
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

Merged
merged 22 commits into from
Jun 27, 2018
Merged

Add gaze plus switch support #2270

merged 22 commits into from
Jun 27, 2018

Conversation

joncamp
Copy link
Contributor

@joncamp joncamp commented Jun 26, 2018

Issue: #2269

PR Type

What kind of change does this PR introduce?

  • Feature

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:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

@joncamp joncamp requested review from harishsk and peteams June 26, 2018 22:14
@joncamp joncamp self-assigned this Jun 26, 2018
@dnfclas
Copy link

dnfclas commented Jun 26, 2018

CLA assistant check
All CLA requirements met.

@@ -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; }
Copy link
Contributor

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.

Copy link
Contributor Author

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>());
Copy link
Contributor

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

@joncamp joncamp merged commit 3b5a1f4 into master Jun 27, 2018
@joncamp joncamp deleted the user/joncamp/gazePlusSwitch branch June 27, 2018 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants