Hello everyone,
I have a problem with the mouse. I use in my program this code:
public void pollInput() {
if (Mouse.isButtonDown(0)) {
int x = Mouse.getX();
int y = Mouse.getY();
System.out.println("MOUSE DOWN @ X: " + x + " Y: " + y);
}
It is from LWJGL tutorial imput.
Everything works great, but when i click i get the value of the mouse 3 times. I need to get only one entry in one click. No matter how long the click will be. Is ther a option of keyrelease?
Sorry for my English i am form Slowakia.
Thanks for Help.