In a switch you get on/off, but a button returns to the original setting.

  • @[email protected]
    link
    fedilink
    English
    33 days ago

    Like you mention, button’s have one state while switches have two. Keys have a KEYPRESS_DOWN and KEYPRESS_UP state, the latter firing when you release the key.

    A button only has a down state.