Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.687 kb
void onNewUser(int userId) {
println("onNewUser - userId: " + userId);
println(" start pose detection");
ni.requestCalibrationSkeleton(userId, true);
}
void onLostUser(int userId) {
println("onLostUser - userId: " + userId);
}
void onStartCalibration(int userId) {
println("onStartCalibration - userId: " + userId);
}
void onEndCalibration(int userId, boolean successful) {
println("onEndCalibration - userId: " + userId + ", successful: " + successful);
if (successful) {
println(" User calibrated");
ni.startTrackingSkeleton(userId);
} else {
println(" Failed to calibrate user, retrying");
ni.requestCalibrationSkeleton(userId, true);
}
}
Jump to Line
Something went wrong with that request. Please try again.