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 IMixedRealityDataProviderAccess and update how data providers are retrieved #4593

Merged
merged 27 commits into from
May 28, 2019
Merged

Conversation

david-c-kline
Copy link

Overview

This is an RC 2 targetted version of #4466. The previous PR got updated to newer dev branch code prematurely, hence it being recreated.

Below is the original PR description:

This change introduces IMixedRealityDataProviderAccess, which allows system implementations a standard contract through which they can allow components access to data provider instances.

As an example, the solver handler now accesses the hand joint service using the following pattern

handJointService = (InputSystem as IMixedRealityDataProviderAccess)?.GetDataProvider()

This change also adds IMixedRealityMouseDeviceManager to allow for easy recognition of mouse data providers.

To ensure consistency across services with data providers, the spatial awareness system's GetObserver* methods have been marked as obsolete, with a message to check for implementation of IMixedRealityDataProviderAccess and to call GetDataProvider*.

Note: The existing GetObserver* implementations now call the GetDataProvider* equivalents.

This change is part of the #3545 series and gets non-editor code (with a handful of small exceptions) entirely on to the new, flexible pattern.

davidkline-ms and others added 27 commits May 17, 2019 10:47
…lete spatial awareness GetObserver methods
…lete spatial awareness GetObserver methods
@david-c-kline david-c-kline self-assigned this May 28, 2019
@david-c-kline david-c-kline changed the title Input provider access rc2 Add IMixedRealityDataProviderAccess and update how data providers are retrieved May 28, 2019
@david-c-kline david-c-kline merged commit 83bf0cc into microsoft:prerelease/2.0.0.rc2_stabilization May 28, 2019
@david-c-kline david-c-kline deleted the inputProviderAccess_rc2 branch June 4, 2019 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants