Skip to content

Instantly share code, notes, and snippets.

@kaorun55
Created September 4, 2012 01:59
Show Gist options
  • Save kaorun55/3615700 to your computer and use it in GitHub Desktop.
Save kaorun55/3615700 to your computer and use it in GitHub Desktop.
INuiSensor#NuiUniqueId()
// 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