Hello.
I'm having a bit of a problem here with a Method. See, I need this method to return true only when the mousebutton was pressed and then released.
private static bool MouseClicked(Mouse.Button Button)
{
if (Mouse.IsButtonPressed(Button))
{
if (!Mouse.IsButtonPressed(Button))
return true;
else
return false;
}
else
return false;
}
I know why the above code fails to do what I want, it's quite simple, it's running through a loop and so, the mouse-clicking has to be pretty damn precise(read lucky) in order for the method to return true..
Now, I'm at a total loss here tbh, I'm not quite sure how this could be solved. Any ideas?