I've got a GUI, extended from GuiScreen, that renders correctly, and want to listen to a mouse click on that GUI.
the current code i have , to test if the click is actually listened to, is
@Override
public void mouseClicked(int mouseX, int mouseY, int mouseButton){
System.out.println("Clicked on " + mouseButton + " at " + mouseX + " : " + mouseY);
}
This however fails to work ~60% of the time. Every 5 clicks i do, i only get 2 lines written to the console.
Is there a different way i should be listening for mouse clicks? I'd assume there is a way to listen for clicks with 100% accuracy