C# Class CubeGestureListener, Kick996

Inheritance: MonoBehaviour, KinectGestures.GestureListenerInterface
Show file Open project: wyj16340227/Kick996 Class Usage Examples

Public Properties

Property Type Description
LeanBack bool
LeanForward bool
LeanLeft bool
LeanRight bool
detectSense int

Public Methods

Method Description
Awake ( ) : void
GestureCancelled ( long userId, int userIndex, KinectGestures.Gestures gesture, KinectInterop.JointType joint ) : bool

Invoked if a gesture is cancelled.

GestureCompleted ( long userId, int userIndex, KinectGestures.Gestures gesture, KinectInterop.JointType joint, Vector3, screenPos ) : bool

Invoked if a gesture is completed.

GestureInProgress ( long userId, int userIndex, KinectGestures.Gestures gesture, float progress, KinectInterop.JointType joint, Vector3, screenPos ) : void

Invoked when a gesture is in progress.

IsSwipeLeft ( ) : bool

Determines whether swipe left is detected.

IsSwipeRight ( ) : bool

Determines whether swipe right is detected.

IsSwipeUp ( ) : bool

Determines whether swipe up is detected.

IsTpose ( ) : bool
Start ( ) : void
Update ( ) : void
UserDetected ( long userId, int userIndex ) : void

Invoked when a new user is detected. Here you can start gesture tracking by invoking KinectManager.DetectGesture()-function.

UserLost ( long userId, int userIndex ) : void

Invoked when a user gets lost. All tracked gestures for this user are cleared automatically.

Private Methods

Method Description
OnGUI ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

GestureCancelled() public method

Invoked if a gesture is cancelled.
public GestureCancelled ( long userId, int userIndex, KinectGestures.Gestures gesture, KinectInterop.JointType joint ) : bool
userId long User ID
userIndex int User index
gesture KinectGestures.Gestures Gesture type
joint KinectInterop.JointType Joint type
return bool

GestureCompleted() public method

Invoked if a gesture is completed.
public GestureCompleted ( long userId, int userIndex, KinectGestures.Gestures gesture, KinectInterop.JointType joint, Vector3, screenPos ) : bool
userId long User ID
userIndex int User index
gesture KinectGestures.Gestures Gesture type
joint KinectInterop.JointType Joint type
screenPos Vector3, Normalized viewport position
return bool

GestureInProgress() public method

Invoked when a gesture is in progress.
public GestureInProgress ( long userId, int userIndex, KinectGestures.Gestures gesture, float progress, KinectInterop.JointType joint, Vector3, screenPos ) : void
userId long User ID
userIndex int User index
gesture KinectGestures.Gestures Gesture type
progress float Gesture progress [0..1]
joint KinectInterop.JointType Joint type
screenPos Vector3, Normalized viewport position
return void

IsSwipeLeft() public method

Determines whether swipe left is detected.
public IsSwipeLeft ( ) : bool
return bool

IsSwipeRight() public method

Determines whether swipe right is detected.
public IsSwipeRight ( ) : bool
return bool

IsSwipeUp() public method

Determines whether swipe up is detected.
public IsSwipeUp ( ) : bool
return bool

IsTpose() public method

public IsTpose ( ) : bool
return bool

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UserDetected() public method

Invoked when a new user is detected. Here you can start gesture tracking by invoking KinectManager.DetectGesture()-function.
public UserDetected ( long userId, int userIndex ) : void
userId long User ID
userIndex int User index
return void

UserLost() public method

Invoked when a user gets lost. All tracked gestures for this user are cleared automatically.
public UserLost ( long userId, int userIndex ) : void
userId long User ID
userIndex int User index
return void

Property Details

LeanBack public property

public bool LeanBack
return bool

LeanForward public property

public bool LeanForward
return bool

LeanLeft public property

public bool LeanLeft
return bool

LeanRight public property

public bool LeanRight
return bool

detectSense public property

public int detectSense
return int