Hello.
I need to implement support for relative mouse movements and I’m considering the following approaches:
- Extend the mouse-move event with a new flag (is_relative) or additional fields (offset_x/offset_y).
- Utilize MouseMoves’ modifier_state field.
- Sending a separate event for mouse lock/unlock (lock-mouse/unlock-mouse).
I am inclined to go with the first option since it’s a more commonly used pattern.
What do you think?