Hi all
Currently my program uses keyboard as a navigation device
Thus, i would like to change it to a Pinch Glove by Fakespace
The current coding for keyboard implements KeyEventDispatcher
so in the method
public boolean dispatchKeyEvent(KeyEvent e)
{
int kCode=e.getKeyCode();
...........<perform some action>..........
}
kCode will be the ASCII codes for the keys pressed. e.g A,B,C
thus, how to convert to navigation using the Pinch Glove?
I have a few hints that might be useful
this is how to initialize it;
public static void main(String[] args)
{
JavaTrackDAPI api = new JavaTrackDAPI();
api.trackdInitTrackerReader(4126);
System.out.println("Done loading tracker");
int num = api.trackdgetNumberOfSensors();
System.out.println("# sensors = "+num);
api.trackdInitControllerReader(4127);
}
I have the idea that I have to use these functions:
public native float trackdGetValuator(int id);
public native int trackdGetButton(int id);