Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Ensure that the detected input sources and detected controller's are readonly from the system #481

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

StephenHodgson
Copy link
Contributor

@StephenHodgson StephenHodgson commented Mar 31, 2020

XRTK - Mixed Reality Toolkit Change Request

Overview

Collections from any IMixedRealityService interface should only return readonly values.

Breaking changes

  • IMixedRealityInputSystem.DetectedInputSources is now a IReadOnlyCollection<IMixedRealityInputSource>
  • IMixedRealityInputSystem.DetectedControllers is now a IReadOnlyCollection<IMixedRealityController>

If anyone was adding to these collections before they should use the proper method via:

  • IMixedRealityInputSystem.RaiseSourceDetected(IMixedRealityInputSource source, IMixedRealityController controller = null)
  • IMixedRealityInputSystem.RaiseSourceLost(IMixedRealityInputSource source, IMixedRealityController controller = null) respectively.

@StephenHodgson StephenHodgson added the Ready for review PR finished primary development, open for review label Mar 31, 2020
@StephenHodgson StephenHodgson added the Bug Something isn't working label Mar 31, 2020
@StephenHodgson StephenHodgson merged commit d7ab41a into development Mar 31, 2020
@StephenHodgson StephenHodgson deleted the fix/input-system-property-access branch March 31, 2020 23:03
XRTK-Build-Bot pushed a commit that referenced this pull request Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Ready for review PR finished primary development, open for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants