API reference
Preparing search index…

ImGui.IsKeyPressedEx

  • Test whether a key was pressed.

    Parameters

    key
    number

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

    repeat
    boolean = true

    Whether holding the key or button generates repeated activations using ImGui repeat timing.

    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

    Source & inheritance

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