MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / update_key_modifiers

Function update_key_modifiers

libraries/lib-app-base/src/gl-imgui.cpp:200–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

update_inputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected