•  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-Filevsin_mode()
vrq_valuator()
vsm_valuator()                                                          VDI

Syntax

VOID vsm_valuator( handle, x, xout, term, status )
WORD handle, x;
WORD *xout, *term, *status;

Function      vsm_valuator() retrieves input from the 'valuator' device in
              sample mode.

Opcode        29

Availability  This call is not guaranteed to be available with any driver
              and its use should therefore be restricted.

Parameters    handle specifies a valid workstation handle. x sets the
              intial value of the 'valuator'. The WORD pointed to by xout
              is filled in with the final value of the device. If a key was
              pressed its ASCII code is returned in the WORD pointed to by
              term. The WORD pointed to by status contains a value as
              follows:

              status    Meaning

                0       No input was taken.

                1       Valuator changed.

                2       Key press occurred.

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

              intin[0] = x;

              vdi();

              *xout = intout[0];
              *term = intout[1];

              *status = contrl[4];

See Also      vsin_mode(), vrq_valuator()

Group         VDI Input