ofTheo / ofxKinect

legacy openFrameworks wrapper for the xbox kinect (OF pre-0.8.0+ only) - ofxKinect is now included and is being maintained in OF releases
MIT License
540 stars 105 forks source link

list number of devices statically #75

Closed ofTheo closed 12 years ago

ofTheo commented 12 years ago

currently you need an ofxKinect object to list the number of devices. it would be great if you could do:

ofxKinect::getNumDevices();

danomatika commented 12 years ago

You can call one of the static functions. I just made a commit so the kinectContext is inited whenever a static function is called. So now these work:

ofxKinect::numTotalDevices();
ofxKinect::numAvailableDevices();

Check the develop branch.