Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft HoloLens Developer???s Guide

You're reading from  Microsoft HoloLens Developer???s Guide

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781786460851
Pages 390 pages
Edition 1st Edition
Languages
Author (1):
Dennis Vroegop Dennis Vroegop
Profile icon Dennis Vroegop
Toc

Events


Looking at things is pretty nice, showing the cursor when the user looks at something they can use even better. However, the system would be quite useless if we could not command the app to do something with objects. We need to use gestures.

The HoloLens currently only supports one gesture. It recognizes the tap gesture. In chapter 6, Take a Look Around You, we will delve into this more and use the different gestures to move our instruments across the stage, but we need to set things up here to delay some groundwork.

Gestures in DirectX

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime