ParsecCursor
Cursor properties.
Member of ParsecClientCursorEvent
, which is itself a member of ParsecClientEvent
, returned by ParsecClientPollEvents
. Also passed to ParsecHostSubmitCursor
to update the cursor while in HOST_GAME
. When polled from ParsecClientPollEvents
, positionX
and positionY
are affected by the values set via ParsecClientSetDimensions
.
Fields
Type | Name | Description |
---|---|---|
uint32_t | size | Size in bytes of the cursor image buffer. |
uint32_t | positionX | When leaving relative mode, the horizontal position in screen coordinates where the cursor reappears. |
uint32_t | positionY | When leaving relative mode, the vertical position in screen coordinates where the cursor reappears. |
uint16_t | width | Width of the cursor image in pixels. |
uint16_t | height | Height of the cursor position in pixels. |
uint16_t | hotX | Horizontal pixel position of the cursor hotspot within the image. |
uint16_t | hotY | Vertical pixel position of the cursor hotspot within the image. |
uint8_t | stream | Video stream index. Must be less than NUM_VSTREAMS . |
bool | hidden | true if the mouse cursor is hidden on the host. |
bool | imageUpdate | true if the cursor image should be updated. The width , height , hotX , hotY , and size members are valid. |
bool | relative | true if in relative mode, meaning the client should submit mouse motion in relative distances rather than absolute screen coordinates. |