C# Class control.Controller

Controller class is an adaptor to use the kinect device gesture detection as keyboard and mouse.
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Méthodes publiques

Méthode Description
Controller ( int pointingHand ) : System

constructor of the controller class

getPointer ( ) : Vector2

return vector2 containing the value indcating the angle between the z axies and the pointing hand.

getShoulderDiff ( ) : float

return the difference btween z coord. of the left and the right shoulders.

getShoulderLeft ( ) : bool

return the z coord. of the left shoulder.

getShoulderRight ( ) : bool

return the z coord. of the right shoulder.

isActive ( int gesture ) : System.Boolean

return boolean indicating the state of the gesture.

Private Methods

Méthode Description
initiGestureManager ( ) : void

initilize gesture that will be used.

updateContollerState ( ) : void

update controller state.

Method Details

Controller() public méthode

constructor of the controller class
public Controller ( int pointingHand ) : System
pointingHand int to indicate the pointing hand (left/right)
Résultat System

getPointer() public méthode

return vector2 containing the value indcating the angle between the z axies and the pointing hand.
public getPointer ( ) : Vector2
Résultat Vector2

getShoulderDiff() public méthode

return the difference btween z coord. of the left and the right shoulders.
public getShoulderDiff ( ) : float
Résultat float

getShoulderLeft() public méthode

return the z coord. of the left shoulder.
public getShoulderLeft ( ) : bool
Résultat bool

getShoulderRight() public méthode

return the z coord. of the right shoulder.
public getShoulderRight ( ) : bool
Résultat bool

isActive() public méthode

return boolean indicating the state of the gesture.
public isActive ( int gesture ) : System.Boolean
gesture int the number coresspond to a specific gesture
Résultat System.Boolean