C# Class KinectV2MouseControl.KinectControl

显示文件 Open project: TangoChen/KinectV2MouseControl

Public Properties

Property Type Description
cursorSmoothing float
doClick bool
mouseSensitivity float
pauseThresold float
timeRequired float
useGripGesture bool

Public Methods

Method Description
Close ( ) : void
KinectControl ( ) : System
Timer_Tick ( object sender, EventArgs e ) : void

Pause to click timer

bodyFrameReader_FrameArrived ( object sender, BodyFrameArrivedEventArgs e ) : void

Read body frames

Method Details

Close() public method

public Close ( ) : void
return void

KinectControl() public method

public KinectControl ( ) : System
return System

Timer_Tick() public method

Pause to click timer
public Timer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

bodyFrameReader_FrameArrived() public method

Read body frames
public bodyFrameReader_FrameArrived ( object sender, BodyFrameArrivedEventArgs e ) : void
sender object
e BodyFrameArrivedEventArgs
return void

Property Details

cursorSmoothing public_oe property

Value 0 - 0.95f, the larger it is, the smoother the cursor would move
public float cursorSmoothing
return float

doClick public_oe property

Decide if the user need to do clicks or only move the cursor
public bool doClick
return bool

mouseSensitivity public_oe property

How far the cursor move according to your hand's movement
public float mouseSensitivity
return float

pauseThresold public_oe property

The radius range your hand move inside a circle for [timeRequired] seconds would be regarded as a pause-clicking
public float pauseThresold
return float

timeRequired public_oe property

Time required as a pause-clicking
public float timeRequired
return float

useGripGesture public_oe property

Use Grip gesture to click or not
public bool useGripGesture
return bool