Hallo,
I am using a normal switch (button) to switch light on or off. This needs a click to shut on and another click to shut off.
There is surprisingly for me another possibility: you can switch the light on by using the left mouse button, hold it and move the mouse to on. Still holding the left mouse button down the light goes on as soon as I reach the right side of the button. As soon as I release the left button the switch (button) goes back to off and the light goes out.
Just like a slider or push button the light goes on as long as you hold down the left mouse button.
My question is:
Is it possible to have a button without the standard procedure to click for on or off. This would give a chance use a “real” push button.
Are there rules to change the behaviour of buttons?
Thanks in advance for all answers.
Raspiprof