Skip to content

Commit 30ffdc1

Browse files
ocornutsergeyn
authored andcommitted
Backends: SDL: Fixed key mapping for ImGuiKey_Menu (ocornut#4921) + misc typos (ocornut#4928)
1 parent 57f715c commit 30ffdc1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backends/imgui_impl_sdl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static ImGuiKey ImGui_ImplSDL2_KeycodeToImGuiKey(int keycode)
171171
case SDLK_RSHIFT: return ImGuiKey_RightShift;
172172
case SDLK_RALT: return ImGuiKey_RightAlt;
173173
case SDLK_RGUI: return ImGuiKey_RightSuper;
174-
case SDLK_MENU: return ImGuiKey_Menu;
174+
case SDLK_APPLICATION: return ImGuiKey_Menu;
175175
case SDLK_0: return ImGuiKey_0;
176176
case SDLK_1: return ImGuiKey_1;
177177
case SDLK_2: return ImGuiKey_2;

docs/FONTS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ for (int rect_n = 0; rect_n < IM_ARRAYSIZE(rect_ids); rect_n++)
292292
## Using Font Data Embedded In Source Code
293293
294294
- Compile and use [binary_to_compressed_c.cpp](https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp) to create a compressed C style array that you can embed in source code.
295-
- See the documentation in [binary_to_compressed_c.cpp](https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp) for instruction on how to use the tool.
296-
- You may find a precompiled version binary_to_compressed_c.exe for Windows instead of demo binaries package (see [README](https://github.com/ocornut/imgui/blob/master/docs/README.md)).
295+
- See the documentation in [binary_to_compressed_c.cpp](https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp) for instructions on how to use the tool.
296+
- You may find a precompiled version binary_to_compressed_c.exe for Windows inside the demo binaries package (see [README](https://github.com/ocornut/imgui/blob/master/docs/README.md)).
297297
- The tool can optionally output Base85 encoding to reduce the size of _source code_ but the read-only arrays in the actual binary will be about 20% bigger.
298298
299299
Then load the font with:

0 commit comments

Comments
 (0)