Meaning of pressed in onAction

Hello JMonkeys,



Is it correct that the value of pressed in onAction method of ActionListener is always true when the trigger is pressed once and false if it is released or does a value of true mean that the trigger iskept pressed?

Thanks.



Regards,

Equi

There are 2 events which are triggered, one for key down, and one for key up. Using false means that the key was released and true means the key was pressed down (if i remember correctly).

And you will get multiple “press” events if the key is held down.