mouse-in

Generic Function

Package: common-graphics

Arguments: window buttons mouse-out-window

This function is called when a mouse-in event happens on window. buttons is an integer representing the state of mouse button(s) and keypad (see below). Bits in the buttons represent the state of modifier keys: 1 indicating that the key is down and 0 that it is up.

Mouse-in-window is the CG window that the mouse was over immediately before moving to the window or control on which mouse-in is now being called (or nil if none). For a hotspot, it is the hotspot in the same parent window from which the mouse moved immediately, if any.

The following table shows the correspondence of buttons and keys to constants defined in Allegro CL for Windows.

Button/Key Associated Constant

left button left-mouse-button

middle button middle-mouse-button

right button right-mouse-button

shift key shift-key

control key control-key

alt key alt-key

See About events in the IDE in cgide.htm.

Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.