API reference
Preparing search index…

ImGui.IsKeyPressed

  • Test whether a key was newly pressed or generated a repeat event this frame.

    Parameters

    key
    number

    ImGuiKey logical key identifier, not a platform-native key code.

    Returns

    boolean

    True if the key was pressed this frame, including held-key repeats when enabled; false otherwise.

    was key pressed (went from !Down to Down)?

    if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate

    Implied repeat = true

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0