4

I've looked around on the internet and cannot find anything, does anyone know of a way to bind a hand wave to a keypress?

numaroth
  • 1,295
  • 4
  • 25
  • 36
AisRuss
  • 259
  • 4
  • 8
  • 16

4 Answers4

2

Have you looked here?

http://www.microsoft.com/en-us/kinectforwindows/develop/

Ropstah
  • 17,538
  • 24
  • 120
  • 194
  • Already looked through there, couldn't find anything regarding keybinding :( – AisRuss Apr 15 '12 at 21:27
  • There should be ways to _read input_ from the Kinect device. It's up to you to raise an event related to a keypress (see: http://stackoverflow.com/questions/1645815/how-can-i-programmatically-generate-keypress-events-in-c) – Ropstah Apr 15 '12 at 21:28
1

First you need to import in code user32.dll

Than you just use this:

System.Windows.Forms.SendKeys.SendWait("{Right}");

Works for me :) You need to put the line above in the part of your code where the gesture is recognized

Fixus
  • 4,631
  • 10
  • 38
  • 67
1

About SendKeys you can read this system.windows.forms.sendkeys

Then you can check this for wave hand

first.Joints[JointType.HandRigh].Position.X
Likurg
  • 2,742
  • 17
  • 22
0

There is a project that binds kinect gestures to keyboard events and mouse movements. It's from a prerelease Kinect SDK, so it might not be 100 % compatible with what you are using right now:

http://www.kinecteducation.com/blog/tag/binding-keys-for-kinect/

Anders Marzi Tornblad
  • 18,896
  • 9
  • 51
  • 66