arnaud-jamin / Cog

Cog is a set of debug tools for Unreal Engine built on top of Dear ImGui
MIT License
357 stars 44 forks source link

SetToggleInputKey does not work. #2

Closed ThaiNhatMinh closed 1 year ago

ThaiNhatMinh commented 1 year ago

I use API same as demo

FCogImguiModule::Get().SetToggleInputKey(FCogImGuiKeyInfo(EKeys::RightAlt));

But only the default Tab key is work.

arnaud-jamin commented 1 year ago

The sample doesn't use this anymore, instead the toggle key can be configured from the Window/Settings window: image

It gets saved in the cog config file, which you can edit manually :

Cog/Saved/Config/WindowsEditor/Cog.ini

[/Script/CogWindow.CogWindow_Settings] ToggleInputKey=(Key=Insert,Shift=Undetermined,Ctrl=Undetermined,Alt=Undetermined,Cmd=Undetermined)

ThaiNhatMinh commented 1 year ago

I use Window/Settings but it got reset every time I launch.

arnaud-jamin commented 1 year ago

do you launch the sample or an integration in your project ?

arnaud-jamin commented 1 year ago

I've changed the way shortcuts are handled. There is now a new Command Bindings window:

image