Created
September 4, 2012 01:59
-
-
Save kaorun55/3615700 to your computer and use it in GitHub Desktop.
INuiSensor#NuiUniqueId()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ConsoleApplication3.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 | |
// | |
#include "stdafx.h" | |
#include <Windows.h> | |
#include <NuiApi.h> | |
#include <vector> | |
#include <iostream> | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
int count = 0; | |
::NuiGetSensorCount( &count ); | |
std::vector<INuiSensor*> kinects( count ); | |
for (int i = 0; i < kinects.size(); i++) { | |
::NuiCreateSensorByIndex( i, &kinects[i] ); | |
std::wcout << kinects[i]->NuiUniqueId() << std::endl;; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment