minor changes

master v1.2.0
Zaafar Ahmed 6 years ago
parent 0a4fc113f6
commit 71e58114c6
  1. 15
      ClickableTransparentOverlay/HookController.cs
  2. 5
      DriverProgram/DriverProgram.csproj
  3. 2
      DriverProgram/Program.cs
  4. BIN
      DriverProgram/image.png

@ -120,7 +120,8 @@ namespace ClickableTransparentOverlay
} }
/// <summary> /// <summary>
/// Tells the HookController if the ImGui is ready to accept keyboard/mouse messages. /// Consumes all (max limit 10 to avoid infinite loop) the
/// keyboard/mouse messages from the message queue.
/// </summary> /// </summary>
public void PopMessages() public void PopMessages()
{ {
@ -157,6 +158,18 @@ namespace ClickableTransparentOverlay
} }
} }
/// <summary>
/// Push the keyboard/mouse message to the message queue.
/// </summary>
/// <param name="type">
/// Message Type.
/// </param>
/// <param name="e">
/// Message details.
/// </param>
/// <param name="miscArg">
/// Only Mouse Up/Down hook uses this param to pass isDownEvent param.
/// </param>
private void PushMessage(HookControllerMessageType type, EventArgs e, bool miscArg = false) private void PushMessage(HookControllerMessageType type, EventArgs e, bool miscArg = false)
{ {
var message = new HookControllerMessage() var message = new HookControllerMessage()

@ -81,6 +81,11 @@
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath> <HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="image.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent> <PostBuildEvent>

@ -69,7 +69,7 @@
ImGui.NewLine(); ImGui.NewLine();
if (File.Exists("image.png")) if (File.Exists("image.png"))
{ {
ImGui.Image(overlay.AddOrGetImagePointer("image.png"), new Vector2(600, 400)); ImGui.Image(overlay.AddOrGetImagePointer("image.png"), new Vector2(256, 256));
} }
else else
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Loading…
Cancel
Save