diff options
| author | untodesu <kirill@untode.su> | 2025-03-15 17:12:47 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-15 17:12:47 +0500 |
| commit | 3a6cfe786a9e78188923849e3f65e2218b1af80c (patch) | |
| tree | 7d8e54c334d7053ce3af0334593338680ac78da6 /game/client/settings.cc | |
| parent | e53cca0ec8b4186cf79b6f927d74483f1301d5f6 (diff) | |
| download | voxelius-3a6cfe786a9e78188923849e3f65e2218b1af80c.tar.bz2 voxelius-3a6cfe786a9e78188923849e3f65e2218b1af80c.zip | |
Hard-code DEBUG_KEY and make it un-bindable
Diffstat (limited to 'game/client/settings.cc')
| -rw-r--r-- | game/client/settings.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/game/client/settings.cc b/game/client/settings.cc index 8d0c81f..65679cb 100644 --- a/game/client/settings.cc +++ b/game/client/settings.cc @@ -4,6 +4,7 @@ #include "core/config.hh" #include "core/constexpr.hh" +#include "client/const.hh" #include "client/gamepad_axis.hh" #include "client/gamepad_button.hh" #include "client/gamepad.hh" @@ -529,7 +530,7 @@ static void refresh_input_wids(void) static void on_glfw_key(const GlfwKeyEvent &event) { - if(event.action == GLFW_PRESS) { + if((event.action == GLFW_PRESS) && (event.key != DEBUG_KEY)) { if(globals::gui_keybind_ptr || globals::gui_gamepad_axis_ptr || globals::gui_gamepad_button_ptr) { if(event.key == GLFW_KEY_ESCAPE) { ImGuiIO &io = ImGui::GetIO(); |
