Weird behaviour
in
Programming Questions
•
2 years ago
I have the following code:
But i realised that when the ALT key has been released, when the user Left Click, the program still do A, which is not what i want.
Any advice?
- void mouseReleased(){{
- if(mouseButton == LEFT) {
- if (key == CODED){
- if(keyCode == ALT)
- // DO A
- }
- }
- }
But i realised that when the ALT key has been released, when the user Left Click, the program still do A, which is not what i want.
Any advice?
1