Provide relative mouse motion vector in event
This will allow the mouse processor to handle relative motion easily.
This commit is contained in:
@@ -365,6 +365,8 @@ struct sc_mouse_scroll_event {
|
||||
|
||||
struct sc_mouse_motion_event {
|
||||
struct sc_position position;
|
||||
int32_t xrel;
|
||||
int32_t yrel;
|
||||
uint8_t buttons_state; // bitwise-OR of sc_mouse_button values
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user