•  Back 
  •  VDI Input 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filegraf_mkstate()
Kbshift()
vq_key_s()                                                              VDI

Syntax

VOID vq_key_s( handle, status )
WORD handle;
WORD *status;

Function      vq_key_s() returns the current shift-key status.

Opcode        128

Availability  Supported by all Atari computers.

Parameters    handle specifies a valid workstation handle. status points to
              a WORD which is filled in on function exit with a bit mask
              containing the current shift key status as follows:

              Name      Bit    Meaning

              K_RSHIFT   0     Right shift key depressed

              K_LSHIFT   1     Left shift key depressed

              K_CTRL     2     Control key depressed

              K_ALT      3     Alternate key depressed

Binding       contrl[0] = 128;
              contrl[1] = contrl[3] = 0;
              contrl[6] = handle;

              vdi();

              *status = intout[0];

See Also      graf_mkstate(), Kbshift()

Group         VDI Input