When dealing with
nite::HandData, there is no way to find out which hand belongs to which user. Actually, there is no direct way of finding this out in NiTE at all. In this recipe, we will show you how it's possible to use
nite::UserMap along with
nite::HandData to determine the user ID of each hand.
Create a project in Visual Studio and prepare it for working with OpenNI and NiTE using the Create a project in Visual Studio 2010 recipe in Chapter 2, OpenNI and C++.
HandleStatus()from the first recipe of this chapter to the top of your source code (just below the