Whats wrong with my code?
app.mouse.isPressed() Make sure the P in pressed is upper case.
app.mouse.isPressed()
P
thanks that solve my problem