API reference
Preparing search index…

ImGui.GetKeyPressedAmount

  • Count key presses using the supplied repeat delay and rate.

    Parameters

    key
    number

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

    repeat_delay
    number

    Delay in seconds before held-key repeats begin.

    rate
    number

    Interval in seconds between held-key repeats.

    Returns

    number

    Number of initial/repeated key presses in the current frame using the requested repeat timing; can exceed 1 for long frames.

    uses provided repeat rate/delay.

    return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate

    Source & inheritance

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