•  Back 
  •  Graphics Library 
  •  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-Fileevnt_button()
vq_mouse()
Graphics Library
graf_mkstate()                                                          AES

Syntax

WORD graf_mkstate( mx, my, mb, ks )
WORD *mx, *my, *mb, *ks;

Function       graf_mkstate() returns information about the current state
               of the mouse pointer, buttons, and keyboard shift-key
               state.

Opcode         79 (0x4F)

Availability   All AES versions.

Parameters     mx and my are WORD pointers, which, on function exit will
               be filled in with the current x and y coordinates of the
               mouse pointer. mb is a WORD pointer, which, on function
               exit will be filled in with the current button state of the
               mouse as defined in evnt_button().

Binding        crys_if(0x4F);

               *mx = intout[1];
               *my = intout[2];
               *mb = intout[3];
               *ks = intout[4];

               return intout[0];

Return Value   The function return is currently reserved and currently
               equals 1.

See Also       evnt_button(), vq_mouse()

Group          Graphics Library