Searched refs:IsKeyPressed (Results 1 - 9 of 9) sorted by relevance
/third_party/mesa3d/src/imgui/ |
H A D | imgui_memory_editor.h | 254 if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_UpArrow)) && DataEditingAddr >= (size_t)Cols) { data_editing_addr_next = DataEditingAddr - Cols; DataEditingTakeFocus = true; } in DrawContents() 255 else if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_DownArrow)) && DataEditingAddr < mem_size - Cols) { data_editing_addr_next = DataEditingAddr + Cols; DataEditingTakeFocus = true; } in DrawContents() 256 else if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_LeftArrow)) && DataEditingAddr > 0) { data_editing_addr_next = DataEditingAddr - 1; DataEditingTakeFocus = true; } in DrawContents() 257 else if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_RightArrow)) && DataEditingAddr < mem_size - 1) { data_editing_addr_next = DataEditingAddr + 1; DataEditingTakeFocus = true; } in DrawContents()
|
H A D | imgui_internal.h | 1412 inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { const int key_index = GImGui->IO.KeyMap[key]; return (key_index >= 0) ? IsKeyPressed(key_index, repeat) : false; } in IsKeyPressedMap()
|
H A D | imgui.h | 645 IMGUI_API bool IsKeyPressed(int user_key_index, bool repeat = true); // was key pressed (went from !Down to Down). if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate
|
H A D | imgui.cpp | 4057 bool ImGui::IsKeyPressed(int user_key_index, bool repeat) in IsKeyPressed() function in ImGui 7908 if (IsKeyPressed(g.IO.KeyMap[ImGuiKey_PageUp], true)) in NavUpdatePageUpPageDown() 7910 else if (IsKeyPressed(g.IO.KeyMap[ImGuiKey_PageDown], true)) in NavUpdatePageUpPageDown() 7918 if (IsKeyPressed(g.IO.KeyMap[ImGuiKey_PageUp], true)) in NavUpdatePageUpPageDown() 7925 else if (IsKeyPressed(g.IO.KeyMap[ImGuiKey_PageDown], true)) in NavUpdatePageUpPageDown()
|
/third_party/mesa3d/src/intel/tools/ |
H A D | aubinator_viewer.cpp | 337 return ImGui::GetIO().KeyCtrl && ImGui::IsKeyPressed(map_key(key)); in has_ctrl_key() 1036 if (ImGui::Button("Done") || ImGui::IsKeyPressed(ImGuiKey_Escape)) in display_aubfile_window()
|
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui.cpp | 4710 bool ImGui::IsKeyPressed(int user_key_index, bool repeat) in IsKeyPressed() function in ImGui 9716 const bool home_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_Home]) && !IsActiveIdUsingKey(ImGuiKey_Home); in NavUpdatePageUpPageDown() 9717 const bool end_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_End]) && !IsActiveIdUsingKey(ImGuiKey_End); in NavUpdatePageUpPageDown() 9724 if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) in NavUpdatePageUpPageDown() 9726 else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) in NavUpdatePageUpPageDown() 9738 if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) in NavUpdatePageUpPageDown() 9745 else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) in NavUpdatePageUpPageDown()
|
H A D | imgui.h | 890 IMGUI_API bool IsKeyPressed(int user_key_index, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate
|
H A D | imgui_internal.h | 2552 inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { ImGuiContext& g = *GImGui; const int key_index = g.IO.KeyMap[key]; return (key_index >= 0) ? IsKeyPressed(key_index, repeat) : false; }
|
H A D | imgui_demo.cpp | 444 if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Space))) in ShowDemoWindow() 5534 ImGui::Text("Keys pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyPressed(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); }
|
Completed in 86 milliseconds