| 198 | } |
| 199 | |
| 200 | static void update_key_modifiers(ImGuiIO & io, int mods) |
| 201 | { |
| 202 | io.AddKeyEvent(ImGuiMod_Ctrl, (mods & GLFW_MOD_CONTROL) != 0); |
| 203 | io.AddKeyEvent(ImGuiMod_Shift, (mods & GLFW_MOD_SHIFT) != 0); |
| 204 | io.AddKeyEvent(ImGuiMod_Alt, (mods & GLFW_MOD_ALT) != 0); |
| 205 | io.AddKeyEvent(ImGuiMod_Super, (mods & GLFW_MOD_SUPER) != 0); |
| 206 | } |
| 207 | |
| 208 | void imgui_instance::update_input(const polymer::app_input_event & e) |
| 209 | { |