Args
ARG(1) indicates whether the CTRL and/or SHIFT keys are being held down, and/or whether the middle/left/right buttons are held down. You can use BIT's TEST operation to ascertain which as so:
IF BIT(ARG(1), 0) THEN SAY "left button pressed" IF BIT(ARG(1), 1) THEN SAY "right button pressed" IF BIT(ARG(1), 4) THEN SAY "Middle button pressed" IF BIT(ARG(1), 2) THEN SAY "SHIFT key pressed" IF BIT(ARG(1), 3) THEN SAY "CTRL key pressed"ARG(2) contains the delta value (ie, the amount that the wheel is rotated). A negative value indicates the user moved the wheel toward himself, and a positive value indicates it was moved away from him. This is in increments of 120. If you'd prefer to scale it in increments of one, then just divide by 120 as so:
delta = ARG(2) % 120ARG(3) is the X position where the mouse pointer is currently located (referenced from the upper left corner of the window's inner area), and ARG(4) is the Y position.
Notes
If the mouse is captured by some window, then the event happens only with the window capturing the mouse.
See also MOUSEMOVE.