menuBack.module
README.md
menuBack
The one module of menuBackKit. hold(onBack, opts) takes Back for an open menu: while the hold stands, Escape, a gamepad's Start or B and a phone's back gesture run onBack, newest and highest hold first, and the app's pause menu stays shut. hold:release() gives it up. follow(key, isOpen, onBack) keeps a hold by a menu's own open test, for a menu from another kit. count(), labels() and keysUp() say what stands. Called by any kit or game that draws its own menus.