After update : input trouble

Hi,



that make one or two month i cannot do update and tonight i have retry and it’s work fine all update complete. (great works ^^)



But surprise, some Physic class has dispear (like PhysicNode et PhysicsCharacterNode ect…) so i replace some class and try to do it work has before.



I have a probleme who doesn’t exist before, it’s about ActionListener and input.



only KeyInput (keyboard ) works , all touch for moving , reload ect working. but all input set on mouseButtonTrigger doesn’t work, in ActionListener no event is listen.



where this trouble can come ?

mhhh how do you register the listeners?

i create this class for player : public class Humain extends Iplayer implements AnimEventListener



in this class i have my listener : [java] ActionListener actionTouche = new ActionListener() {



public void onAction(String binding, boolean value, float tpf) {

System.out.println(“On action :”+binding);

if (binding.equals(“jump”)) {

if(!weapon.isSight()){

physicsCharacter.jump();

}

} else if (binding.equals(“fire”)) {

if(weapon!=null){

weapon.fire(value);

}

} else if (binding.equals(“up”)) {

up = value;

} else if (binding.equals(“down”)) {

down = value;

} else if (binding.equals(“right”)) {

right = value;

} else if (binding.equals(“left”)) {

left = value;

} else if (binding.equals(“reload”)) {

if(weapon!=null){

weapon.reload(value);

}

}else if(binding.equals(“sight”)){

if(weapon!= null){

weapon.sight(value);



}

}

}

};[/java]



and i call this in constructor of my class :



[java] public void setInput() {

Engine.APP.getInputManager().addMapping(“up”, new KeyTrigger(KeyInput.KEY_Z));

Engine.APP.getInputManager().addMapping(“down”, new KeyTrigger(KeyInput.KEY_S));

Engine.APP.getInputManager().addMapping(“left”, new KeyTrigger(KeyInput.KEY_A));

Engine.APP.getInputManager().addMapping(“right”, new KeyTrigger(KeyInput.KEY_D));

Engine.APP.getInputManager().addMapping(“jump”, new KeyTrigger(KeyInput.KEY_SPACE));

Engine.APP.getInputManager().addMapping(“fire”, new MouseButtonTrigger(MouseInput.BUTTON_LEFT));

Engine.APP.getInputManager().addMapping(“reload”, new KeyTrigger(KeyInput.KEY_R));

Engine.APP.getInputManager().addMapping(“sight”, new MouseButtonTrigger(MouseInput.BUTTON_RIGHT));

String[] key = {“up”, “down”, “left”, “right”, “jump”, “fire”, “reload”,“sight”};

Engine.APP.getInputManager().addListener(actionTouche, key);

}[/java]



it’s seem something has change with last update but what

so anyone has not idea for this trouble ?