net.sf.josceleton.connection.api.service.motion
Interface MotionListener

All Superinterfaces:
Listener
All Known Subinterfaces:
Gesture<C,L>, HitWallGesture, JointableGesture<C,L>

public interface MotionListener
extends Listener

A per-user service to get notified about user movements, as well as stores most recent coordinates for all joints.

Since:
0.4

Method Summary
 void onMoved(Joint movedJoint, Coordinate updatedCoordinate, Skeleton skeleton)
          Will be invoked whenever the specific user has moved any joint/body part.
 

Method Detail

onMoved

void onMoved(Joint movedJoint,
             Coordinate updatedCoordinate,
             Skeleton skeleton)
Will be invoked whenever the specific user has moved any joint/body part. Most likely only the skeleton parameter will be used to do a full re-check of joint coordinates.

Parameters:
movedJoint - which has been, obviously, moved
updatedCoordinate - the joint has moved to
skeleton - as it is most likely one wants to recheck all conditions when single joint moved
Since:
0.4


Copyright © 2011 Josceleton. All Rights Reserved.