SS.KySns_Get_Status

Returns key down status.

Entry Conditions

A
path number

B
SS.KySns ($27)

Exit Conditions

A
keyboard scan information

Additional Information

  • Accumulator A returns with a bit pattern representing eight keys. With each keyboard scan, NitrOS-9 updates this bit pattern. A bit set (1) indicates that a key was pressed since the last scan. A clear bit (0) indicates that a key was not pressed. Definitions for the bits are as follows:

Bit
Key

0
SHIFT

1
CTRL or CLEAR

2
ALT or @

3
Up Arrow

4
Down Arrow

5
Left Arrow

6
Right Arrow

7
Space Bar

The bits can be masked with the following equates:

SHIFTBIT
equ
%00000001

CNTRLBIT
equ
%00000010

ALTERBIT
equ
%00000100

UPBIT
equ
%00001000

DOWNBIT
equ
%00010000

LEFTBIT
equ
%00100000

RIGHTBIT
equ
%01000000

SPACEBIT
equ
%10000000

  • The support module for this call is CC3IO.

MongoDB Logo MongoDB