This code uses vJoy 2.02 SDK to send Leap Motion data to vJoy driver, exposing it as a HID Compliant game controller.
At the moment this Leap4Joy will send Yaw, Pitch and Roll information, but the file is easily expanded upon if you would like to add button clicks and other actions. The code is pretty self explanatory.
Leap Motion documentation at http://leapmotion.com
vJoystick documentation at http://vjoystick.sourceforge.net.
Log in to post a comment.