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

Method get_mods

libraries/lib-app-base/src/glfw-app.cpp:192–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192int glfw_window::get_mods() const
193{
194 int mods = 0;
195 if (glfwGetKey(window, GLFW_KEY_LEFT_CONTROL) || glfwGetKey(window, GLFW_KEY_RIGHT_CONTROL)) mods |= GLFW_MOD_CONTROL;
196 if (glfwGetKey(window, GLFW_KEY_LEFT_SHIFT) || glfwGetKey(window, GLFW_KEY_RIGHT_SHIFT)) mods |= GLFW_MOD_SHIFT;
197 if (glfwGetKey(window, GLFW_KEY_LEFT_ALT) || glfwGetKey(window, GLFW_KEY_RIGHT_ALT)) mods |= GLFW_MOD_ALT;
198 return mods;
199}
200
201/////////////////////
202// polymer_app //

Callers 1

imgui_menu_stackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected