Added pointer frame events

This commit is contained in:
akallabeth
2021-03-02 08:49:50 +01:00
committed by akallabeth
parent 1cd97c3270
commit 9ea7f88753
2 changed files with 24 additions and 2 deletions

View File

@@ -107,7 +107,8 @@ enum
UWAC_EVENT_CLIPBOARD_SELECT,
UWAC_EVENT_CLIPBOARD_OFFER,
UWAC_EVENT_OUTPUT_GEOMETRY,
UWAC_EVENT_POINTER_AXIS_DISCRETE
UWAC_EVENT_POINTER_AXIS_DISCRETE,
UWAC_EVENT_POINTER_FRAME
};
/** @brief window states */
@@ -195,6 +196,14 @@ struct uwac_pointer_axis_event
};
typedef struct uwac_pointer_axis_event UwacPointerAxisEvent;
struct uwac_pointer_frame_event
{
int type;
UwacWindow* window;
UwacSeat* seat;
};
typedef struct uwac_pointer_frame_event UwacPointerFrameEvent;
struct uwac_touch_frame_event
{
int type;
@@ -286,6 +295,7 @@ union uwac_event {
UwacPointerMotionEvent mouse_motion;
UwacPointerButtonEvent mouse_button;
UwacPointerAxisEvent mouse_axis;
UwacPointerFrameEvent mouse_frame;
UwacKeyboardEnterLeaveEvent keyboard_enter_leave;
UwacKeyboardModifiersEvent keyboard_modifiers;
UwacClipboardEvent clipboard;