I am using the following code:
while(Mouse.next()) {
if(Mouse.isButtonDown(0) {
// do something here
}
}
sometimes, and only sometimes, that tranlates into sending a bunch of “do something here”'s others it processes a single click. I can test this by click and hold, if my panel opens and closes, it is getting multiple actions, if it opens and stays open, one action (what I want!)
Is there a better or more correct way to get the single click action?
