|
I am very impressed with the jinput initiative and would like to use it for joystick control in games I have been developing for bonobos at the Great Ape Trust in Des Moines. When I run the following 'helloworld' code on Win32 I see only 'keyboard' and 'mouse' listed as controllers even though I have verified using dxdiag that direct x sees my joystick. Any advice on how to help jinput see the attached joystick? Thanks, Ken
import net.java.games.input.*; public class ViewControllers { public static void main(String[] args) { Controller [] controllers = ControllerEnvironment.getDefaultEnvironment().getControllers(); for(Controller c : controllers) { System.out.println("controller: " + c.getName()); } } }
|