WHICHKEY returns the keynumber as well as the keyname, for convenience * Added documentation
30 lines
3.1 KiB
Plaintext
30 lines
3.1 KiB
Plaintext
Medley WHICHKEY
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
WHICHKEY
|
||
1
|
||
|
||
4
|
||
|
||
By Ron Kaplan
|
||
This document was last edited in October 2025.
|
||
|
||
This file defines two trival functions, WHICHKEY and DOWNP.
|
||
(WHICHKEY DELAY) [Function]
|
||
WHICHKEY returns a pair (keynumber keyname) corresponding to the first key in the keyboard transition table that is down after DELAY milliseconds have expired. The DELAY gives the user time to find and depress the key after typing in the WHICHKEY expression in an exec. DELAY defaults to 3000. WHICHKEY returns NIL if no key is down after DELAY milliseconds.
|
||
(DOWNP KEYNAME DELAY) [Function]
|
||
Returns T if key KEYNAME is down after DELAY milliseconds.
|
||
|
||
Only the source file for WHICHKEY is provided, there is no compiled file.
|
||
|