is setting a boolean the only way to detect if a button has been clicked?

Printable View