Unlike WAIT, which returns a threedigit number tha t identifies alpha and shifted keyboard

 

planes, KEY returns the rowcolumn location of

any key pressed, including !, , and ~.

Access:

!°LIN KEY

( °is the leftshift of the

Nkey).

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 topmost row.

b is the column number, where column 1 is the leftm ost column.

c is the shift state of the key, i.e., whether it is normal, alphashifted, left shifted, etc. The shift state representations are as follows:

1: Normal function.

 

 

 

2: Leftshift function.

21: Left shiftandhold f

unction.

3.

Rightshift function.

31: Right shiftandhold

function.

4.

Alphafunction.

41: Alpha shiftandhold func tion.

5.

Alphaleftshift function.

51: Alphaleftshif

tandhold function.

6.

Alpharightshift function.

61: Alpharightshi

ftandhold function.

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→

 

 

 

 

3124 Full Command and Function Reference

Page 244
Image 244
HP 50g Graphing, 48gII Graphing manual Keyeval, →Keytime, Access …µKEYEVAL Input/Output