Property::Index property = actor.RegisterProperty( "Dummy Property", Vector3::ZERO );
ConstraintData constraintData;
- actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::SCREEN_POSITION ),
- Source( detector, PanGestureDetector::SCREEN_DISPLACEMENT ),
- Source( detector, PanGestureDetector::SCREEN_VELOCITY ),
- Source( detector, PanGestureDetector::LOCAL_POSITION ),
- Source( detector, PanGestureDetector::LOCAL_DISPLACEMENT ),
- Source( detector, PanGestureDetector::LOCAL_VELOCITY ),
+ actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::Property::ScreenPosition ),
+ Source( detector, PanGestureDetector::Property::ScreenDisplacement ),
+ Source( detector, PanGestureDetector::Property::ScreenVelocity ),
+ Source( detector, PanGestureDetector::Property::LocalPosition ),
+ Source( detector, PanGestureDetector::Property::LocalDisplacement ),
+ Source( detector, PanGestureDetector::Property::LocalVelocity ),
PanConstraint( constraintData ) ) );
// Render and notify
Property::Index property = actor.RegisterProperty( "Dummy Property", Vector3::ZERO );
ConstraintData constraintData;
- actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::SCREEN_POSITION ),
- Source( detector, PanGestureDetector::SCREEN_DISPLACEMENT ),
- Source( detector, PanGestureDetector::SCREEN_VELOCITY ),
- Source( detector, PanGestureDetector::LOCAL_POSITION ),
- Source( detector, PanGestureDetector::LOCAL_DISPLACEMENT ),
- Source( detector, PanGestureDetector::LOCAL_VELOCITY ),
+ actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::Property::ScreenPosition ),
+ Source( detector, PanGestureDetector::Property::ScreenDisplacement ),
+ Source( detector, PanGestureDetector::Property::ScreenVelocity ),
+ Source( detector, PanGestureDetector::Property::LocalPosition ),
+ Source( detector, PanGestureDetector::Property::LocalDisplacement ),
+ Source( detector, PanGestureDetector::Property::LocalVelocity ),
PanConstraint( constraintData ) ) );
// Render and notify
Property::Index property = actor.RegisterProperty( "Dummy Property", Vector3::ZERO );
ConstraintData constraintData;
- actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::SCREEN_POSITION ),
- Source( detector, PanGestureDetector::SCREEN_DISPLACEMENT ),
- Source( detector, PanGestureDetector::SCREEN_VELOCITY ),
- Source( detector, PanGestureDetector::LOCAL_POSITION ),
- Source( detector, PanGestureDetector::LOCAL_DISPLACEMENT ),
- Source( detector, PanGestureDetector::LOCAL_VELOCITY ),
+ actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::Property::ScreenPosition ),
+ Source( detector, PanGestureDetector::Property::ScreenDisplacement ),
+ Source( detector, PanGestureDetector::Property::ScreenVelocity ),
+ Source( detector, PanGestureDetector::Property::LocalPosition ),
+ Source( detector, PanGestureDetector::Property::LocalDisplacement ),
+ Source( detector, PanGestureDetector::Property::LocalVelocity ),
PanConstraint( constraintData ) ) );
// Render and notify
Property::Index property = actor.RegisterProperty( "Dummy Property", Vector3::ZERO );
ConstraintData constraintData;
- actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::SCREEN_POSITION ),
- Source( detector, PanGestureDetector::SCREEN_DISPLACEMENT ),
- Source( detector, PanGestureDetector::SCREEN_VELOCITY ),
- Source( detector, PanGestureDetector::LOCAL_POSITION ),
- Source( detector, PanGestureDetector::LOCAL_DISPLACEMENT ),
- Source( detector, PanGestureDetector::LOCAL_VELOCITY ),
+ actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::Property::ScreenPosition ),
+ Source( detector, PanGestureDetector::Property::ScreenDisplacement ),
+ Source( detector, PanGestureDetector::Property::ScreenVelocity ),
+ Source( detector, PanGestureDetector::Property::LocalPosition ),
+ Source( detector, PanGestureDetector::Property::LocalDisplacement ),
+ Source( detector, PanGestureDetector::Property::LocalVelocity ),
PanConstraint( constraintData ) ) );
// Render and notify
Property::Index property = actor.RegisterProperty( "Dummy Property", Vector3::ZERO );
ConstraintData constraintData;
- actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::SCREEN_POSITION ),
- Source( detector, PanGestureDetector::SCREEN_DISPLACEMENT ),
- Source( detector, PanGestureDetector::SCREEN_VELOCITY ),
- Source( detector, PanGestureDetector::LOCAL_POSITION ),
- Source( detector, PanGestureDetector::LOCAL_DISPLACEMENT ),
- Source( detector, PanGestureDetector::LOCAL_VELOCITY ),
+ actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::Property::ScreenPosition ),
+ Source( detector, PanGestureDetector::Property::ScreenDisplacement ),
+ Source( detector, PanGestureDetector::Property::ScreenVelocity ),
+ Source( detector, PanGestureDetector::Property::LocalPosition ),
+ Source( detector, PanGestureDetector::Property::LocalDisplacement ),
+ Source( detector, PanGestureDetector::Property::LocalVelocity ),
PanConstraint( constraintData ) ) );
// Render and notify
Property::Index property = actor.RegisterProperty( "Dummy Property", Vector3::ZERO );
ConstraintData constraintData;
- actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::SCREEN_POSITION ),
- Source( detector, PanGestureDetector::SCREEN_DISPLACEMENT ),
- Source( detector, PanGestureDetector::SCREEN_VELOCITY ),
- Source( detector, PanGestureDetector::LOCAL_POSITION ),
- Source( detector, PanGestureDetector::LOCAL_DISPLACEMENT ),
- Source( detector, PanGestureDetector::LOCAL_VELOCITY ),
+ actor.ApplyConstraint( Constraint::New<Vector3>( property, Source( detector, PanGestureDetector::Property::ScreenPosition ),
+ Source( detector, PanGestureDetector::Property::ScreenDisplacement ),
+ Source( detector, PanGestureDetector::Property::ScreenVelocity ),
+ Source( detector, PanGestureDetector::Property::LocalPosition ),
+ Source( detector, PanGestureDetector::Property::LocalDisplacement ),
+ Source( detector, PanGestureDetector::Property::LocalVelocity ),
PanConstraint( constraintData ) ) );
// Render and notify