C# Class control.Controller

Controller class is an adaptor to use the kinect device gesture detection as keyboard and mouse.
ファイルを表示 Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Methods

Method 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

Method Description
initiGestureManager ( ) : void

initilize gesture that will be used.

updateContollerState ( ) : void

update controller state.

Method Details

Controller() public method

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

getPointer() public method

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

getShoulderDiff() public method

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

getShoulderLeft() public method

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

getShoulderRight() public method

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

isActive() public method

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