History

Clean file formating

- Clean the classes declaration and body for DeviceTracker MotionTracker ControllerScriptingInterface / InputController Leapmotion - final bug remaining in the LeapOfFaith..js THe orientation assigned to the skeleton joints doesn't work even though all looks good.

samcake committed 12 years ago

Commit d56ab211 parent abacefa9 files · +138 −80Browse files

Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 9 files). Show all

Unified · Split

interface/src/scripting/ControllerScriptingInterface.cpp+4−4
@@ -269,13 +269,13 @@ AbstractInputController* ControllerScriptingInterface::createInputController( co · 268 unmodified lines
269 } else {269 } else {
270 270
271 // Look for matching category271 // Look for matching category
272 // TODO in this current implementation, we just pick the first device assuming there is one ( normally the LeapMotion)
273 // in the near future we need to change that to a real mapping between the device names and the cateory
272 int categoryID = 0;274 int categoryID = 0;
273 MotionTracker* motionTracker = dynamic_cast< MotionTracker* > ( DeviceTracker::getDevice( categoryID ) );275 MotionTracker* motionTracker = dynamic_cast< MotionTracker* > ( DeviceTracker::getDevice( categoryID ) );
274 if ( motionTracker )276 if ( motionTracker ) {
275 {
276 int trackerID = motionTracker->findJointIndex( tracker.toStdString() );277 int trackerID = motionTracker->findJointIndex( tracker.toStdString() );
277 if ( trackerID > 0 )278 if ( trackerID > 0 ) {
278 {
279 AbstractInputController* inputController = new InputController(categoryID,trackerID, this );279 AbstractInputController* inputController = new InputController(categoryID,trackerID, this );
280 280
281 _inputControllers.insert( InputControllerMap::value_type( inputController->getKey(), inputController ) );281 _inputControllers.insert( InputControllerMap::value_type( inputController->getKey(), inputController ) );