c# - Generating Keystroke With the Kinect -
i'm working on project final year of degree , having trouble coding aspect, being new c# , unity. i'm using kinect, unity , zigfu package , want use persons position in relation kinect generate keystroke. eg if player closer kinect trigger forward button pressed, if farther away trigger back button neutral area in middle.
//has user moved if (rootposition.z < -2) { //print(rootposition.z); v = -1; } //has user moved forward if (rootposition.z > -1) { //print(rootposition.z); v = 1; }
i've managed find section registers in relation kinect don't know how trigger keystroke. matter appreciated deadline fast approaching , i'm struggling technical side of things.
i've used in past simulated keystrokes:
windows input simulator (c# sendinput wrapper - simulate keyboard , mouse)
Comments
Post a Comment