*STATUS (MOUSE)


 

*STATUS={value}

 

This list control returns the status of the mouse in the DIM variable {value}. The format is:

 

Bytes

Definition

1

Left button status: 0=Up, 1=Down

2

Right button status: 0=Up, 1=Down

3

Middle button status: 0=Up, 1=Down

4-6

Current horizontal mouse position relative to mouse window

7-9

Current vertical mouse position relative to mouse window

10-12

Number of times left button pushed since last *STATUS

13-15

Horizontal position when left button pushed last time

16-18

Vertical position when left button pushed last time

19-21

Number of times right button pushed since last *STATUS

22-24

Horizontal position when right button pushed last time

25-27

Vertical position when right button pushed last time

28-30

Number of times middle button pushed since last *STATUS

31-33

Horizontal position when middle button pushed last time

34-36

Vertical position when middle button pushed last time

37-39

Number of times left button released since last *STATUS

40-42

Horizontal position when left button released last time

43-45

Vertical position when left button released last time

46-48

Number of times right button released since last *STATUS

49-51

Horizontal position when right button released last time

52-54

Vertical position when right button released last time

55-57

Number of times middle button released since last *STATUS

58-60

Horizontal position when middle button released last time

61-63

Vertical position when middle button released last time

Note the following:

  1. The middle button is not currently supported. All references are for future support.

  2. If the mouse is currently disabled, each field of the status variable is set to zero.

  3. If there is no mouse on the system, the OVER flag is set. Other flags are indeterminate and reserved for future enhancements.

 

 

See Also: List Controls (MOUSE), MOUSE

 



PL/B Language Reference *MOUSEOFF (MOUSE) *P (MOUSE)