API reference
Preparing search index…

ImGui.IO_AddKeyEvent

  • Queue a key press or release event.

    Parameters

    self

    ImGuiIO handle on which this method operates.

    key
    number

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

    down
    boolean

    Current pressed state: true for press/down, false for release/up.

    Returns

    void

    Queue a new key down/up event.

    Key should be "translated" (as in, generally ImGuiKey.A matches the key end-user would use to emit an 'A' character)

    Source & inheritance

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