2.2.8.1.2.2 Fast-Path Input Event (TS_FP_INPUT_EVENT)

The TS_FP_INPUT_EVENT structure is used to describe the type and encapsulate the data for a fast-path input event sent from client to server. All fast-path input events conform to this basic structure (sections 2.2.8.1.2.2.1 to 2.2.8.1.2.2.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

eventHeader

eventData (variable)

...

eventHeader (1 byte): An 8-bit, unsigned integer. One byte bit-packed event header. Two pieces of information are collapsed into this byte:

  • Fast-path input event type

  • Flags specific to the input event

The format of the eventHeader field is described by the following bitmask diagram.


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

eventFlags

eventCode

eventFlags (5 bits): A 5-bit unsigned integer that contains flags specific to the input event.

eventCode (3 bits): A 3-bit unsigned integer that specifies the type code of the input event.

Value (3 bits)

Meaning

FASTPATH_INPUT_EVENT_SCANCODE

0x0

Indicates a Fast-Path Keyboard Event (section 2.2.8.1.2.2.1).

FASTPATH_INPUT_EVENT_MOUSE

0x1

Indicates a Fast-Path Mouse Event (section 2.2.8.1.2.2.3).

FASTPATH_INPUT_EVENT_MOUSEX

0x2

Indicates a Fast-Path Extended Mouse Event (section 2.2.8.1.2.2.4).

FASTPATH_INPUT_EVENT_SYNC

0x3

Indicates a Fast-Path Synchronize Event (section 2.2.8.1.2.2.5).

FASTPATH_INPUT_EVENT_UNICODE

0x4

Indicates a Fast-Path Unicode Keyboard Event (section 2.2.8.1.2.2.2).

FASTPATH_INPUT_EVENT_MOUSEREL

0x5

Indicates a Fast Path Relative Mouse Event (section 2.2.8.1.2.2.7).

FASTPATH_INPUT_EVENT_QOE_TIMESTAMP

0x6

Indicates a Fast-Path Quality of Experience (QoE) Timestamp Event (section 2.2.8.1.2.2.6).

eventData (variable): Optional and variable-length data specific to the input event.