imgui icon indicating copy to clipboard operation
imgui copied to clipboard

How to warp mouse when using sliders?

Open Krish2882005 opened this issue 2 years ago • 1 comments

Hello,

Is there any way we can warp the mouse when using any slider?

Like if we are sliding and mouse position reached the width of the screen, then the mouse position will become 0

Krish2882005 avatar Aug 02 '22 08:08 Krish2882005

You'll need to figure out how to implement it yourself, you can probably get/set cursor pos. Maybe operating systems have wrapping modes I have no idea. Based on that research we can see if there's something needed to add at Backend level. Then probably Sliders and Drags need to support that teleport operation as well. None of this is supported, if you want to do the research and implementation for it I'll keep this open.

ocornut avatar Aug 02 '22 13:08 ocornut

Closing. Further discussions can happen in #228.

ocornut avatar Aug 08 '22 09:08 ocornut