Strange mouse behaviour [SOLVED]

People i spent a few days, driving me crazy with the mouse and the ray for identifying picked objects. I proved absoluteMouse and hardware mouse and a few other variations of mouse picking and always happened the same:

When i click over an object, the click lasts for EVER, it never ended. It was not like the common problem of five o six times clicked because of the actualization in the main game, in this case the click lasts for ever, never ended.



The only way i could found to solve it,  was put after of the object identification the last line:



//pick code

//pr.getPickData(0).getTargetMesh().getParent() …



MouseInput.get().clear();            <---- THIS



i couldnt prove the app in other machine so i dont know if  its a driver problem, i have ubuntu 8.04  and jme 2.



its strange, isnt it?



I post this because it could save time to someone.



Bye