Files
VBoxGuest/data/mouse/structs.inc
2026-03-04 22:03:47 +03:00

43 lines
2.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; =============================================================================
; Запрос: GetMouseStatus (VMMDevReq_GetMouseStatus = 1)
; Запрос: SetMouseStatus (VMMDevReq_SetMouseStatus = 2)
; =============================================================================
struct VMMDEV_REQ_MOUSE_STATUS
header VMMDEV_HEADER
mouse_features dd ? ; VMMDEV_MOUSE_* features
pointer_x_pos dd ? ; X position
pointer_y_pos dd ? ; Y position
ends
; =============================================================================
; Mouse pointer shape (для изменения курсора)
; =============================================================================
struct VMMDEV_REQ_POINTER_SHAPE
header VMMDEV_HEADER
flags dd ? ; VMMDEV_POINTER_* flags
x_hot dd ? ; X hotspot
y_hot dd ? ; Y hotspot
width dd ? ; Width in pixels
height dd ? ; Height in pixels
; За которыми следуют данные маски
ends
; =============================================================================
; Extended mouse status (VMMDevReq_GetMouseStatusEx = 223)
; Включает кнопки и скролл. Требует VMMDEV_MOUSE_GUEST_USES_FULL_STATE_PROTOCOL.
; =============================================================================
struct VMMDEV_REQ_MOUSE_STATUS_EX
core VMMDEV_REQ_MOUSE_STATUS
scroll_dz dd ? ; vertical scroll delta
scroll_dw dd ? ; horizontal scroll delta
buttons dd ? ; VMMDEV_MOUSE_BUTTON_* mask
ends
;struct VMMDEV_REQ_MOUSE_POINTER
; header VMMDEV_HEADER
; f_flags dd ?
; x_hot dd ?
; y_hot dd ?
; width dd ?
; height dd ?
; data rb 0 ; AND-mask + XOR-mask (variable)
;ends