22

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

you are viewing a single comment's thread
view the rest of the comments
[-] BaconIsAVeg@lemmy.ml 3 points 1 month 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.

this post was submitted on 26 Feb 2025
22 points (100.0% liked)

Mechanical Keyboards

9688 readers
12 users here now

Are you addicted to the clicking sounds of your beautiful and impressive mechanical keyboard?
If so, this community is for you!

Here you can discuss everything about mechanical keyboards (and only mechanical keyboards).

Banner by Jay Zhang on Unsplash

founded 4 years ago