wlr-virtual-pointer-unstable-v1

(index)

zwlr_virtual_pointer_v1

virtual pointer

Interface
Version 2

This protocol allows clients to emulate a physical pointer device. The requests are mostly mirror opposites of those specified in wl_pointer.

zwlr_virtual_pointer_v1.motion

pointer relative motion event

Request
Since Version 1

The pointer has moved by a relative amount to the previous request.

Values are in the global compositor space.

ArgumentTypeDescription
timeuint

timestamp with millisecond granularity

dxfixed

displacement on the x-axis

dyfixed

displacement on the y-axis

zwlr_virtual_pointer_v1.motion_absolute

pointer absolute motion event

Request
Since Version 1

The pointer has moved in an absolute coordinate frame.

Value of x can range from 0 to x_extent, value of y can range from 0 to y_extent.

ArgumentTypeDescription
timeuint

timestamp with millisecond granularity

xuint

position on the x-axis

yuint

position on the y-axis

x_extentuint

extent of the x-axis

y_extentuint

extent of the y-axis

zwlr_virtual_pointer_v1.button

button event

Request
Since Version 1

A button was pressed or released.

ArgumentTypeDescription
timeuint

timestamp with millisecond granularity

buttonuint

button that produced the event

stateuint<wl_pointer.button_state>

physical state of the button

zwlr_virtual_pointer_v1.axis

axis event

Request
Since Version 1

Scroll and other axis requests.

ArgumentTypeDescription
timeuint

timestamp with millisecond granularity

axisuint<wl_pointer.axis>

axis type

valuefixed

length of vector in touchpad coordinates

zwlr_virtual_pointer_v1.frame

end of a pointer event sequence

Request
Since Version 1

Indicates the set of events that logically belong together.

zwlr_virtual_pointer_v1.axis_source

axis source event

Request
Since Version 1

Source information for scroll and other axis.

ArgumentTypeDescription
axis_sourceuint<wl_pointer.axis_source>

source of the axis event

zwlr_virtual_pointer_v1.axis_stop

axis stop event

Request
Since Version 1

Stop notification for scroll and other axes.

ArgumentTypeDescription
timeuint

timestamp with millisecond granularity

axisuint<wl_pointer.axis>

the axis stopped with this event

zwlr_virtual_pointer_v1.axis_discrete

axis click event

Request
Since Version 1

Discrete step information for scroll and other axes.

This event allows the client to extend data normally sent using the axis event with discrete value.

ArgumentTypeDescription
timeuint

timestamp with millisecond granularity

axisuint<wl_pointer.axis>

axis type

valuefixed

length of vector in touchpad coordinates

discreteint

number of steps

zwlr_virtual_pointer_v1.destroy

destroy the virtual pointer object

Destructor Request
Since Version 1

EntryValueSinceDescription
invalid_axis01

client sent invalid axis enumeration value

invalid_axis_source11

client sent invalid axis source enumeration value

zwlr_virtual_pointer_manager_v1

virtual pointer manager

Interface
Version 2

This object allows clients to create individual virtual pointer objects.

zwlr_virtual_pointer_manager_v1.create_virtual_pointer

Create a new virtual pointer

Request
Since Version 1

Creates a new virtual pointer. The optional seat is a suggestion to the compositor.

ArgumentTypeDescription
seatnullable object<wl_seat>

idnew_id<zwlr_virtual_pointer_v1>

zwlr_virtual_pointer_manager_v1.destroy

destroy the virtual pointer manager

Destructor Request
Since Version 1

zwlr_virtual_pointer_manager_v1.create_virtual_pointer_with_output

Create a new virtual pointer

Request
Since Version 2

Creates a new virtual pointer. The seat and the output arguments are optional. If the seat argument is set, the compositor should assign the input device to the requested seat. If the output argument is set, the compositor should map the input device to the requested output.

ArgumentTypeDescription
seatnullable object<wl_seat>

outputnullable object<wl_output>

idnew_id<zwlr_virtual_pointer_v1>

Copyright