Skip to content

Commit

Permalink
update kinc and sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo-Oliverio committed Nov 27, 2020
1 parent 63eeeaa commit f13deba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/kissBasicSample
2 changes: 1 addition & 1 deletion thirdparty/imgui/sources/imgui_kiss.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <kiss/pch.h>
#include <Kiss/pch.h>
#include <Kiss/app.h>
#include <kinc/input/keyboard.h>
#include <kinc/input/mouse.h>
Expand Down
4 changes: 4 additions & 0 deletions thirdparty/imgui/sources/private/imgui_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ namespace kiss {
{
if (button < 5)
{
auto& io = ImGui::GetIO();
io.MousePos = ImVec2((float)x, (float)y);
pressed[button] = true;
pressedCurrently[button] = true;
}
Expand All @@ -146,6 +148,8 @@ namespace kiss {
{
if (button < 5)
{
auto& io = ImGui::GetIO();
io.MousePos = ImVec2((float)x, (float)y);
pressedCurrently[button] = false;
}
}
Expand Down

0 comments on commit f13deba

Please sign in to comment.