mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
input: add cursor move and button emulation
Co-authored-by: Consolatis <35009135+Consolatis@users.noreply.github.com>
This commit is contained in:
parent
d2d469133f
commit
58e9724007
2 changed files with 65 additions and 15 deletions
|
|
@ -11,6 +11,7 @@ struct seat;
|
|||
struct server;
|
||||
struct wlr_surface;
|
||||
struct wlr_scene_node;
|
||||
enum wlr_button_state;
|
||||
|
||||
/* Cursors used internally by labwc */
|
||||
enum lab_cursors {
|
||||
|
|
@ -118,6 +119,11 @@ void cursor_update_focus(struct server *server);
|
|||
void cursor_update_image(struct seat *seat);
|
||||
|
||||
void cursor_init(struct seat *seat);
|
||||
void cursor_emulate_move_absolute(struct seat *seat,
|
||||
struct wlr_input_device *device,
|
||||
double x, double y, uint32_t time_msec);
|
||||
void cursor_emulate_button(struct seat *seat,
|
||||
uint32_t button, enum wlr_button_state state, uint32_t time_msec);
|
||||
void cursor_finish(struct seat *seat);
|
||||
|
||||
#endif /* LABWC_CURSOR_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue