This sample demonstrates how to use the Kinect skeletal tracking feature to move the mouse cursor with a user's hands.
- By default, the right hand moves the cursor and the left hand controls the left mouse button.
- When the left hand is raised, the mouse button is held down. When the left hand is lowered, the mouse button is released.
- Use the checkbox on the main UI to switch to "left-handed" mode where the hand functions are reversed.
- App.xaml: declaration of application level resources
- App.xaml.cs/vb: interaction logic behind app.xaml
- MainWindow.xaml: declaration of layout within main application window
- MainWindow.xaml.cs/vb: NUI initialization, processing
- CursorControl.ico: Application icon used in title bar and task bar
BUILDING THE SAMPLE
To build the sample using Visual Studio (preferred method):
RUNNING THE SAMPLE
To run the sample:
- In Windows Explorer, navigate to the
directory pathname directory.
- Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
- In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.
- Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
- Type Cursorcontrol at the command line, or double-click the icon for CursorControl to launch it from Windows Explorer.