Relative mouse moves support

Hello.

I need to implement support for relative mouse movements and I’m considering the following approaches:

  1. Extend the mouse-move event with a new flag (is_relative) or additional fields (offset_x/offset_y).
  2. Utilize MouseMoves’ modifier_state field.
  3. 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?

Found existing solution - GST_NAVIGATION_MODIFIER_LOCK_MASK, closing.