Key and mouse pressed with boolean

a: yes sorry about that
b: what do you mean by no answer ? it’s not possible ?
c: sorry again, if i must, i will delete this post

What do you mean ?

d: well i’m looking for a way to make a boolean act like rightClick++;

e: i use this code because i code in java with eclipse and it’s the only one working, https://discourse.processing.org/t/keypressed-and-keyreleased-with-java-eclipse/12994/16, you gave me this solution and it’s work great.

So my question is: Is there a way, with the code i post, to use a boolean and it act like this:
when i press a mouse button, the boolean is set to true and then it’s set to false before i release the mouse button.