Prevent sllder from going into edit mode


#1

Hi,
i use the imgui slider but when you click it on the first time you can’t move the slider but it asks you to edit the values, is there a way to prevent this.
Also how would I achieve a vertical slider and a progress-bar if possible, any info will be of help.
Thanks in advance.


#2

i use the imgui slider but when you click it on the first time you can’t move the slider but it asks you to edit the values, is there a way to prevent this.

Do you mean it goes into “keyboard input” mode? This happens when you CTRL+Click a slider/drag. Perhaps your value for io.KeyCtrl is incorrect.

There are VerticalSlider and ProgressBar examples in the demo window.


#3

Thank you.
It seems the problem is around here https://github.com/OGRECave/ogre-imgui/blob/8e2acd87be42c36619a6182a58cb53e3b7120e6f/ImguiManager.cpp#L77


#4

Suppose we should be using kc2sc(SDL_XX) for all characters, sorry I haven’t been online recently so I missed responding.