Skip to content

Commit

Permalink
Update to v1.87
Browse files Browse the repository at this point in the history
  • Loading branch information
mellinoe committed Feb 12, 2022
1 parent b196a86 commit 6826b95
Show file tree
Hide file tree
Showing 15 changed files with 3,823 additions and 1,639 deletions.
Binary file modified deps/cimgui/linux-x64/cimgui.so
Binary file not shown.
Binary file modified deps/cimgui/osx-x64/cimgui.dylib
Binary file not shown.
Binary file modified deps/cimgui/win-x64/cimgui.dll
Binary file not shown.
Binary file modified deps/cimgui/win-x86/cimgui.dll
Binary file not shown.
3,063 changes: 1,782 additions & 1,281 deletions src/CodeGenerator/definitions/cimgui/definitions.json

Large diffs are not rendered by default.

1,366 changes: 1,082 additions & 284 deletions src/CodeGenerator/definitions/cimgui/structs_and_enums.json

Large diffs are not rendered by default.

29 changes: 17 additions & 12 deletions src/ImGui.NET/Generated/ImGui.gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6409,14 +6409,19 @@ public static Vector2 GetItemRectSize()
ImGuiNative.igGetItemRectSize(&__retval);
return __retval;
}
public static int GetKeyIndex(ImGuiKey imgui_key)
public static int GetKeyIndex(ImGuiKey key)
{
int ret = ImGuiNative.igGetKeyIndex(imgui_key);
int ret = ImGuiNative.igGetKeyIndex(key);
return ret;
}
public static int GetKeyPressedAmount(int key_index, float repeat_delay, float rate)
public static string GetKeyName(ImGuiKey key)
{
int ret = ImGuiNative.igGetKeyPressedAmount(key_index, repeat_delay, rate);
byte* ret = ImGuiNative.igGetKeyName(key);
return Util.StringFromPtr(ret);
}
public static int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate)
{
int ret = ImGuiNative.igGetKeyPressedAmount(key, repeat_delay, rate);
return ret;
}
public static ImGuiViewportPtr GetMainViewport()
Expand Down Expand Up @@ -8495,26 +8500,26 @@ public static bool IsItemVisible()
byte ret = ImGuiNative.igIsItemVisible();
return ret != 0;
}
public static bool IsKeyDown(int user_key_index)
public static bool IsKeyDown(ImGuiKey key)
{
byte ret = ImGuiNative.igIsKeyDown(user_key_index);
byte ret = ImGuiNative.igIsKeyDown(key);
return ret != 0;
}
public static bool IsKeyPressed(int user_key_index)
public static bool IsKeyPressed(ImGuiKey key)
{
byte repeat = 1;
byte ret = ImGuiNative.igIsKeyPressed(user_key_index, repeat);
byte ret = ImGuiNative.igIsKeyPressed(key, repeat);
return ret != 0;
}
public static bool IsKeyPressed(int user_key_index, bool repeat)
public static bool IsKeyPressed(ImGuiKey key, bool repeat)
{
byte native_repeat = repeat ? (byte)1 : (byte)0;
byte ret = ImGuiNative.igIsKeyPressed(user_key_index, native_repeat);
byte ret = ImGuiNative.igIsKeyPressed(key, native_repeat);
return ret != 0;
}
public static bool IsKeyReleased(int user_key_index)
public static bool IsKeyReleased(ImGuiKey key)
{
byte ret = ImGuiNative.igIsKeyReleased(user_key_index);
byte ret = ImGuiNative.igIsKeyReleased(key);
return ret != 0;
}
public static bool IsMouseClicked(ImGuiMouseButton button)
Expand Down
Loading

0 comments on commit 6826b95

Please sign in to comment.