Alternative operation

You can click directly the inputs to switch them on or off.