jawaff / KinectController

Control your computer using your body. The KinectController turns the Kinect into a controller that allows configurable actions to be emulated when configurable gestures are triggered by the user.
0 stars 0 forks source link

Gamepad Emulation Support #37

Open jawaff opened 8 years ago

jawaff commented 8 years ago

Add support for reactions that will emulate a gamepad's input.

jawaff commented 8 years ago

I'm looking into the possibility of using a C++ library that deals with DirectInput -- a lot of games are made with C++ anyway and probably mostly use DirectInput. The first library I've come across is Vjoy.

jawaff commented 8 years ago

http://vjoystick.sourceforge.net/site/

jawaff commented 8 years ago

The plan so far is to interface with the vjoy C++ library using Javacpp.

https://github.com/bytedeco/javacpp http://vjoystick.sourceforge.net/site/

jawaff commented 8 years ago

We may need to figure something out for supporting gamepads on Linux. vjoystick is a Windows only library if I'm not mistaken.

jawaff commented 8 years ago

It's been a while, but I've gone back to figure out how to deal with Javacpp. I found a wiki page that has some information on how to use their parser to generate Java files. https://github.com/bytedeco/javacpp-presets/wiki/Create-New-Presets