diff options
| author | Oskari Timperi <oswjk@users.noreply.github.com> | 2020-08-31 20:47:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 20:47:38 +0300 |
| commit | 45b0faa148362e656f7a6b4bd784df51678c81be (patch) | |
| tree | 024530f162d8f625951b244c8da17f98be33895f /imgui_impl_raylib.cpp | |
| parent | 849f17160c8302f09898c9a0d2624d18e4b4de77 (diff) | |
| download | imgui-impl-raylib-45b0faa148362e656f7a6b4bd784df51678c81be.tar.gz imgui-impl-raylib-45b0faa148362e656f7a6b4bd784df51678c81be.zip | |
Update for raylib v3
Closes #1
Diffstat (limited to 'imgui_impl_raylib.cpp')
| -rw-r--r-- | imgui_impl_raylib.cpp | 7 |
1 files 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; } |
