Skip to content

Commit

Permalink
Backends: OSX: Update to use io.AddEventKey() will full key map (#2625,
Browse files Browse the repository at this point in the history
  • Loading branch information
thedmd authored and ocornut committed Jan 10, 2022
1 parent da1864d commit ee436aa
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 104 deletions.
2 changes: 1 addition & 1 deletion backends/imgui_impl_osx.h
Expand Up @@ -4,9 +4,9 @@

// Implemented features:
// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'.
// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy kVK_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set]
// [X] Platform: OSX clipboard is supported within core Dear ImGui (no specific code in this backend).
// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'.
// [X] Platform: Keyboard arrays indexed using kVK_* codes, e.g. ImGui::IsKeyPressed(kVK_Space).

// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
Expand Down

0 comments on commit ee436aa

Please sign in to comment.