•  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()
vq_key_s()
vq_mouse()                                                              VDI

Syntax

VOID vq_mouse( handle, mb, mx, my )
WORD handle;
WORD *mb, *mx, *my;

Function      vq_mouse() returns information regarding the current state of
              the mouse.

Opcode        124

Availability  Supported by all screen drivers.

Parameters    handle specifies a valid workstation handle. mb points to
              a WORD which will be filled in upon function exit with a bit
              mask indicating the current status of the mouse buttons as
              follows:

              Name           Mask    Meaning

              LEFT_BUTTON    0x01    Left mouse button

              RIGHT_BUTTON   0x02    Right mouse button

              MIDDLE_BUTTON  0x04    Middle button (this button would be
                                     the first button to the left of the
                                     rightmost button on the device).

              -              0x08    Other buttons (0x08 is the mask for
                             .       the button to the immediate left of
                             .       the middle button. Masks continue
                                     leftwards).

              mx and my both point to WORDs which will be filled in upon
              function exit with the current position of the mouse pointer.

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

              vdi();

              *mb = intout[0];
              *mx = ptsout[0];
              *my = ptsout[1];

See Also      graf_mkstate(), vq_key_s()

Group         VDI Input