Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileGRAF_MKSTATE([mx,my,m_state,k_state]) mx, my, m_state, k_state: ivar This function returns the current mouse pointer coordinates and the status of the mouse buttons and the keyboard 'shift' keys. This is an AES routine to query the mouse. Unlike MOUSEX etc., the function gives valid results if the pointer is within a menu bar. Return value will always be 1. mx - Current x-coordinate of the mouse. my - Current y-coordinate of the mouse. m_state - Mouse button status: Bit 0: Left button Bit 1: Right button k_state - Status of keyboard 'modifier' keys (if key is pressed bit is set): Bit 0: Right shift key Bit 1: Left shift key Bit 2: Control key Bit 3: Alternate key The parameters mx, my, m_state, and k_state are optional, these values can also be found by querying GINTOUT(1) to GINTOUT(4). Memo: GRAF_MKSTATE() with no parameters crashes the compiler. graf_mkstate()+