edge-sensitive inputs (untested)