Add a few more helper wrappers in ImGuiNET.IO class.

internals
Eric Mellino 7 years ago
parent cf07b6c86c
commit f6e6386a32
  1. 18
      src/ImGui.NET/IO.cs
  2. 2
      src/ImGui.NET/ImGui.NET.csproj

@ -120,6 +120,24 @@ namespace ImGuiNET
get { return _nativePtr->KeyAlt == 1; } get { return _nativePtr->KeyAlt == 1; }
set { _nativePtr->KeyAlt = value ? (byte)1 : (byte)0; } set { _nativePtr->KeyAlt = value ? (byte)1 : (byte)0; }
} }
public bool WantCaptureMouse
{
get { return _nativePtr->WantCaptureMouse == 1; }
set { _nativePtr->WantCaptureMouse = value ? (byte)1 : (byte)0; }
}
public bool WantCaptureKeyboard
{
get { return _nativePtr->WantCaptureKeyboard == 1; }
set { _nativePtr->WantCaptureKeyboard = value ? (byte)1 : (byte)0; }
}
public bool WantTextInput
{
get { return _nativePtr->WantTextInput == 1; }
set { _nativePtr->WantTextInput = value ? (byte)1 : (byte)0; }
}
} }
public unsafe class KeyMap public unsafe class KeyMap

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<Description>A .NET wrapper for the dear ImGui library.</Description> <Description>A .NET wrapper for the dear ImGui library.</Description>
<AssemblyVersion>0.4.0</AssemblyVersion> <AssemblyVersion>0.4.1</AssemblyVersion>
<Authors>Eric Mellino</Authors> <Authors>Eric Mellino</Authors>
<TargetFramework>netstandard1.1</TargetFramework> <TargetFramework>netstandard1.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>

Loading…
Cancel
Save