Hello everybody,
I have a program running on a Windows PC and I’m using mouse movement for rotating and zooming the Camera.
This part works fine (It’s not a game but a program for CAD (Computer Aided Design) like AutoCAD).
Now we want to use the Program in an area of the company where the workers use windows tablet-PCs without a mouse and just a touchscreen.
But in the rawInputListener there are no "onTouchEvent"s fired.
When I move the finger over the screen there are only MouseMotionEvents and when I tap on the screen there are MouseButtonEvents.
I would like to use the Methods described here: TouchEvent (jMonkeyEngine3)
What do I have to do to get onTouchEvents?
the code ist incomplete and just to show how I try to do it. But it doesn’t work for Touchscreens.
inputManager.addMapping("TouchInput",new TouchTrigger(TouchInput.ALL));
inputManager.addRawInputListener(rawInputListener);
private RawInputListener rawInputListener = new RawInputListener() {
@Override
public void onTouchEvent(TouchEvent te) {
System.out.println("rawInputListener TouchEvent fired");
}
}