mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge branch 'net5' of github.com:goatcorp/Dalamud into net5
This commit is contained in:
commit
b7bd3f28ea
2 changed files with 23 additions and 1 deletions
|
|
@ -4,7 +4,9 @@ using System.Diagnostics;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Numerics;
|
||||
|
||||
using Dalamud.Game.ClientState.Keys;
|
||||
using ImGuiNET;
|
||||
using ImGuiScene;
|
||||
|
||||
namespace Dalamud.Interface
|
||||
{
|
||||
|
|
@ -215,6 +217,26 @@ namespace Dalamud.Interface
|
|||
target.Value!.BuildLookupTable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Map a VirtualKey keycode to an ImGuiKey enum value.
|
||||
/// </summary>
|
||||
/// <param name="key">The VirtualKey value to retrieve the ImGuiKey counterpart for.</param>
|
||||
/// <returns>The ImGuiKey that corresponds to this VirtualKey, or <c>ImGuiKey.None</c> otherwise.</returns>
|
||||
public static ImGuiKey VirtualKeyToImGuiKey(VirtualKey key)
|
||||
{
|
||||
return ImGui_Input_Impl_Direct.VirtualKeyToImGuiKey((int)key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Map an ImGuiKey enum value to a VirtualKey code.
|
||||
/// </summary>
|
||||
/// <param name="key">The ImGuiKey value to retrieve the VirtualKey counterpart for.</param>
|
||||
/// <returns>The VirtualKey that corresponds to this ImGuiKey, or <c>VirtualKey.NO_KEY</c> otherwise.</returns>
|
||||
public static VirtualKey ImGuiKeyToVirtualKey(ImGuiKey key)
|
||||
{
|
||||
return (VirtualKey)ImGui_Input_Impl_Direct.ImGuiKeyToVirtualKey(key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get data needed for each new frame.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 1e4c06b36013efb367c8c57c7f724a30f67a3973
|
||||
Subproject commit 5dca917630078e807ecabf5b33ccb8863655d7a4
|
||||
Loading…
Add table
Add a link
Reference in a new issue