Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Beautiful.

Small suggestion for improvement: There are really two boolean variables (inside the button area, or not; mouse button down, or not). They give rise to more than 4 states because the order of actions is important.

But the diagram might be made more intuitive by placing the states within a 2x2 chess board corresponding to in/out, up/down. Not much change is necessary (for example: shift "held outside" left, "pressed" down, and "fire" up).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: