Hi all
suppose i want to add a custom MouseAxisTrigger to a geometry.
So i created my CustomAxisTrigger that implements Trigger
but i cannot trig the event.
I added the trigger to inputManager as follow
[java]
inputManager.addMapping("axisy", new CustomMouseAxisTrigger(MouseInput.AXIS_Y));
[/java]
so i excpect when mouse pointer moves on y axis the trigger is fired
[java] @Override
public int triggerHashCode() {
System.out.println("trig event!");
return 0 ;
}
[/java] but trig event string is never typed
Anyone knows why?
Just adding a mapping does nothing but send the event to all listeners that registered for it. If you don’t register any listener nothing will happen.