| Unlike WAIT, which returns a | ||||
| planes, KEY returns the | ||||
Access: | !°LIN KEY | ( °is the |
| ||
Input/Output: |
|
|
|
|
|
|
| Level 1/Argument 1 |
| Level 2/Item 1 | Level 1/Item 2 |
|
|
|
|
|
|
|
|
| → | xn m | 1 |
|
|
| → |
| 0 |
|
|
| |||
Example: | The program « DO UNTIL KEY END 81 SAME » returns 1 to the stack if the ! | ||||
| key is pressed while the indefinite loop is running. |
|
| ||
See also: | WAIT, KEYEVAL |
|
|
| |
|
|
|
|
|
|
KEYEVAL | Command |
|
|
| |
Type: |
|
|
| ||
Description: | Actions the specified key press. |
|
|
| |
| You input a number, in the format ab.c, that represents the key. In the number ab.c: |
•a is the row coordinate number, where row 1 is the
•b is the column number, where column 1 is the
•c is the shift state of the key, i.e., whether it is normal,
1: Normal function. |
| |
2: | 21: Left | |
3. | 31: Right | |
4. | 41: Alpha | |
5. | 51: | |
6. | 61: |
The sign of the input controls whether USER mode key assignments are used. Positive inputs specify the USER mode key definition. Negative inputs specify the default system keyboard.
Access: …µKEYEVAL
Input/Output:
|
| Level 1/Argument 1 | Level 1/Item 1 |
|
|
|
|
|
| nn.n | → |
|
|
|
|
Example: | Turn the calculator off using a command. |
| |
Command: | KEYEVAL(101.3) |
| |
Result: | The calculator is turned off. |
| |
→KEYTIME | Command |
| |
Type: |
| ||
Description: | Sets a new keytime value. |
| |
| Keytime is the time after a keypress during which further keypresses will not be actioned. It is | ||
| measured in ticks, with valid values between 0 and 4096 ticks. If you experience key bounce, you | ||
| can increase the value of keytime. If you experience lost keystrokes when rapidly hitting the same | ||
| key in succession, you can decrease the value of keytime. The default is 1138 ticks. | ||
Access: | …µ→KEYTIME |
| |
Input/Output: |
|
|
|
|
| Level 1/Argument 1 | Level 1/Item 1 |
|
|
|
|
|
| time | → |
See also: | KEYTIME→ |
|
|
|
|