brutal/Brutal.ImGui/Generated-Internal/PInvoke/IsKeyPressed_internal.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

39 lines
2.3 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi.Internal
{
public unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3592">imgui_internal.h:3592</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10192">imgui.cpp:10192</see>
/// <br/><c>bool IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [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.
/// </code>
/// <para>
/// Important: unlike legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires
/// EXPLICIT repeat.
/// </para>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 IsKeyPressed_internal(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id);
}
}