Lines Matching defs:key
112 struct ImGuiStorage; // Helper for key->value storage
128 typedef int ImGuiKey; // -> enum ImGuiKey_ // Enum: A key identifier (ImGui-side enum)
643 IMGUI_API int GetKeyIndex(ImGuiKey imgui_key); // map ImGuiKey_* values into user's key index. == io.KeyMap[key]
644 IMGUI_API bool IsKeyDown(int user_key_index); // is key being held. == io.KeysDown[user_key_index]. note that imgui doesn't know the semantic of each entry of io.KeysDown[]. Use your own indices/enums according to how your backend/engine stored them into io.KeysDown[]!
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
646 IMGUI_API bool IsKeyReleased(int user_key_index); // was key released (went from Down to !Down)..
1297 float KeyRepeatDelay; // = 0.250f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.).
1298 float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds.
1400 float KeysDownDuration[512]; // Duration the keyboard key has been down (0.0f == just pressed)
1401 float KeysDownDurationPrev[512]; // Previous duration the key has been down
1611 ImGuiID key;
1613 Pair(ImGuiID _key, int _val_i) { key = _key; val_i = _val_i; }
1614 Pair(ImGuiID _key, float _val_f) { key = _key; val_f = _val_f; }
1615 Pair(ImGuiID _key, void* _val_p) { key = _key; val_p = _val_p; }
1623 IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const;
1624 IMGUI_API void SetInt(ImGuiID key, int val);
1625 IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const;
1626 IMGUI_API void SetBool(ImGuiID key, bool val);
1627 IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const;
1628 IMGUI_API void SetFloat(ImGuiID key, float val);
1629 IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL
1630 IMGUI_API void SetVoidPtr(ImGuiID key, void* val);
1635 // float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar;
1636 IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0);
1637 IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false);
1638 IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f);
1639 IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL);