Here you. I made a Java shell for PPJoy. And it is really easy to use. Cm:
try { Joystick joystick = new Joystick(); try { joystick.analog[Joystick.ANALOG_AXIS_Z] = Joystick.ANALOG_MAX; joystick.digital[12] = Joystick.DIGITAL_ON; joystick.send(); } finally { joystick.close(); } } catch (JoystickException e) { e.printStackTrace(); }
Source code and binaries can be found here .
Albus dumbledore
source share