//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi.Internal
{
public unsafe partial class PInvoke
{
///
///
/// Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would
/// default to repeat. New API requiress explicit ImGuiInputFlags_Repeat.
///
///
/// C++:
/// imgui_internal.h:3592
/// ,
/// imgui.cpp:10192
///
bool IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id = 0)
///
///
///
///
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
///
///
/// Important: unlike legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires
/// EXPLICIT repeat.
///
///
[LibraryImport("imgui")]
public static unsafe partial Bool8 IsKeyPressed_internal(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id);
}
}