Get Mouse X value on Widget

I think it’s clear now - you need the mouse delta reported in the widget while the mouse button is held down.

Do you have any idea how can I do it?