July 2017
Beginner to intermediate
390 pages
10h 53m
English
Take a look at our GazeSampleDirectX project and the main class GazeSampleDirectXMain. In here, you will find the spatialInputHandler field of the SpatialInputHandler type. This class is part of the template and thus not a part of the framework. Open this file and take a look at it:
public class SpatialInputHandler { private SpatialInteractionManager interactionManager; private SpatialInteractionSourceState sourceState; public SpatialInputHandler() { interactionManager = SpatialInteractionManager.GetForCurrentView(); interactionManager.SourcePressed += this.OnSourcePressed; } public SpatialInteractionSourceState CheckForInput() { SpatialInteractionSourceState sourceState = this.sourceState; this.sourceState ...Read now
Unlock full access