Compartilhar via


2.2.8.1.1.3.1.1.4 Extended Mouse Event (TS_POINTERX_EVENT)

The TS_POINTERX_EVENT structure has the same format as the TS_POINTER_EVENT (section 2.2.8.1.1.3.1.1.3). The fields and possible field values are all the same, except for the pointerFlags field. Support for the Extended Mouse Event is advertised in the Input Capability Set (section 2.2.7.1.6).


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

pointerFlags

xPos

yPos

pointerFlags (2 bytes): A 16-bit unsigned integer. Contains flags that describe the extended mouse event.

Flag

Meaning

PTRXFLAGS_DOWN

0x8000

Indicates that a press event has occurred at the position specified by the xPos and yPos fields. The button flags indicate which button has been pressed and at least one of these flags MUST be set.

PTRXFLAGS_BUTTON1

0x0001

Extended mouse button 1 (also referred to as button 4) was pressed or released. If the PTRXFLAGS_DOWN flag is set, the button was pressed; otherwise, it was released.

PTRXFLAGS_BUTTON2

0x0002

Extended mouse button 2 (also referred to as button 5) was pressed or released. If the PTRXFLAGS_DOWN flag is set, the button was pressed; otherwise, it was released.

xPos (2 bytes): A 16-bit unsigned integer. The x-coordinate of the pointer.

yPos (2 bytes): A 16-bit unsigned integer. The y-coordinate of the pointer.