mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
About, IO: Added io.BackendPlatformName, io.BackendRendererName for informational/QA purpose.
This commit is contained in:
parent
3849def253
commit
7658035e5a
19 changed files with 66 additions and 7 deletions
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
// CHANGELOG
|
||||
// (minor and older changes stripped away, please see git history for details)
|
||||
// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window.
|
||||
// 2018-07-07: Initial version.
|
||||
|
||||
// Data
|
||||
|
|
@ -27,6 +28,7 @@ bool ImGui_ImplOSX_Init()
|
|||
//io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used)
|
||||
//io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional)
|
||||
//io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; // We can set io.MouseHoveredViewport correctly (optional, not easy)
|
||||
io.BackendPlatformName = "imgui_impl_osx";
|
||||
|
||||
// Keyboard mapping. ImGui will use those indices to peek into the io.KeyDown[] array.
|
||||
const int offset_for_function_keys = 256 - 0xF700;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue