wlr_virtual_pointer_unstable_v1
-
# zwlr_virtual_pointer_v1
This protocol allows clients to emulate a physical pointer device. The requests are mostly mirror opposites of those specified in wl_pointer.Requests
-
void zwlr_virtual_pointer_v1_motion(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1,uint32_t time, /* timestamp with millisecond granularity */wl_fixed_t dx, /* displacement on the x-axis */wl_fixed_t dy /* displacement on the y-axis */)The pointer has moved by a relative amount to the previous request. Values are in the global compositor space.
-
void zwlr_virtual_pointer_v1_motion_absolute(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1,uint32_t time, /* timestamp with millisecond granularity */uint32_t x, /* position on the x-axis */uint32_t y, /* position on the y-axis */uint32_t x_extent, /* extent of the x-axis */uint32_t y_extent /* extent of the y-axis */)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.
-
void zwlr_virtual_pointer_v1_button(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1,uint32_t time, /* timestamp with millisecond granularity */uint32_t button, /* button that produced the event */uint32_t state /* physical state of the button */)A button was pressed or released.
-
void zwlr_virtual_pointer_v1_axis(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1,uint32_t time, /* timestamp with millisecond granularity */uint32_t axis, /* axis type */wl_fixed_t value /* length of vector in touchpad coordinates */)Scroll and other axis requests.
-
void zwlr_virtual_pointer_v1_frame(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1)Indicates the set of events that logically belong together.
-
void zwlr_virtual_pointer_v1_axis_source(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1,uint32_t axis_source /* source of the axis event */)Source information for scroll and other axis.
-
void zwlr_virtual_pointer_v1_axis_stop(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1,uint32_t time, /* timestamp with millisecond granularity */uint32_t axis /* the axis stopped with this event */)Stop notification for scroll and other axes.
-
void zwlr_virtual_pointer_v1_axis_discrete(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1,uint32_t time, /* timestamp with millisecond granularity */uint32_t axis, /* axis type */wl_fixed_t value, /* length of vector in touchpad coordinates */int32_t discrete /* number of steps */)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.
-
void zwlr_virtual_pointer_v1_destroy(struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_v1)
Enums
-
ZWLR_VIRTUAL_POINTER_V1_ERROR_INVALID_AXIS /* client sent invalid axis enumeration value */ZWLR_VIRTUAL_POINTER_V1_ERROR_INVALID_AXIS_SOURCE /* client sent invalid axis source enumeration value */
-
-
# zwlr_virtual_pointer_manager_v1
This object allows clients to create individual virtual pointer objects.Requests
-
struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_manager_v1_create_virtual_pointer(struct zwlr_virtual_pointer_manager_v1* zwlr_virtual_pointer_manager_v1,struct wl_seat* seat)Creates a new virtual pointer. The optional seat is a suggestion to the compositor.
-
void zwlr_virtual_pointer_manager_v1_destroy(struct zwlr_virtual_pointer_manager_v1* zwlr_virtual_pointer_manager_v1)
-
struct zwlr_virtual_pointer_v1* zwlr_virtual_pointer_manager_v1_create_virtual_pointer_with_output(struct zwlr_virtual_pointer_manager_v1* zwlr_virtual_pointer_manager_v1,struct wl_seat* seat,struct wl_output* output)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.
-
Copyright Info
Copyright © 2019 Josef Gajdusek
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.