Home
last modified time | relevance | path

Searched refs:IsKeyPressed (Results 1 - 9 of 9) sorted by relevance

/third_party/mesa3d/src/imgui/
H A Dimgui_memory_editor.h254 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 Dimgui_internal.h1412 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 Dimgui.h645 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 Dimgui.cpp4057 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 Daubinator_viewer.cpp337 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 Dimgui.cpp4710 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 Dimgui.h890 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 Dimgui_internal.h2552 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 Dimgui_demo.cpp444 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 84 milliseconds