From 45b0faa148362e656f7a6b4bd784df51678c81be Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 31 Aug 2020 20:47:38 +0300 Subject: Update for raylib v3 Closes #1 --- imgui_impl_raylib.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/imgui_impl_raylib.cpp b/imgui_impl_raylib.cpp index 77f2424..308bf84 100644 --- a/imgui_impl_raylib.cpp +++ b/imgui_impl_raylib.cpp @@ -234,10 +234,11 @@ bool ImGui_ImplRaylib_ProcessEvent() FOR_ALL_KEYS(SET_KEY_DOWN); - if (GetKeyPressed() != -1) - { + // Uncomment the three lines below if using raylib earlier than version 3. + //if (GetKeyPressed() != -1) + //{ io.AddInputCharacter(GetKeyPressed()); - } + //} return true; } -- cgit v1.2.3