2.2.2.4.7.1.2 IMMOUSE

The IMMOUSE packet specifies a mouse event from the sender.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

flags

x

y

flags (2 bytes): A bitmap of the following values describing the event.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5

A

B

C

D

E

F

G

H

R

0

0

0

0

0

0

0

Where the bits are defined as:

Value

Description

A

IM_FLAG_MOUSE_DOWN

The user pressed a mouse button.

B

IM_FLAG_MOUSE_BUTTON3

The user pressed the third mouse button.

C

IM_FLAG_MOUSE_BUTTON2

The user pressed the second mouse button.

D

IM_FLAG_MOUSE_BUTTON1

The user pressed the first mouse button.

E

IM_FLAG_MOUSE_MOVE

The user moved the mouse.

F

IM_FLAG_MOUSE_DOUBLE

The user double-clicked the mouse.

G

IM_FLAG_MOUSE_WHEEL

The user rotated the mouse wheel.

H

IM_FLAG_MOUSE_DIRECTION

If specified, the mouse wheel is rotating backward. If not specified, the wheel is rotating forward.

R

IM_FLAG_MOUSE_ROTATION_MASK

When the mouse wheel is rotated, the amount is masked with this value and encoded in the flags field. The rotation flag is already masked with IM_FLAG_MOUSE_DIRECTION (flag H).

Bits marked 0 are part of the IM_FLAG_MOUSE_ROTATION_MASK.

x (2 bytes): The new x-coordinate of the cursor in screen coordinates.

y (2 bytes): The new y-coordinate of the cursor in screen coordinates.