Skip to content

Commit bfd1667

Browse files
committed
Update dear imgui submodule
1 parent 72ef349 commit bfd1667

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

BeefProj.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FileVersion = 1
2-
Dependencies = {corlib = "*", ImGui = "*", RfgTools = "*", "Beef.Linq" = "*"}
2+
Dependencies = {corlib = "*", RfgTools = "*", "Beef.Linq" = "*", ImGui = "*"}
33

44
[Project]
55
Name = "Nanoforge"

BeefSpace.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FileVersion = 1
2-
Projects = {Nanoforge = {Path = "."}, ImGui = {Path = "Dependencies/imgui-beef/ImGui"}, RfgTools = {Path = "Dependencies/RfgTools"}, "Beef.Linq" = {Path = "Dependencies/Beef.Linq/src"}}
2+
Projects = {Nanoforge = {Path = "."}, RfgTools = {Path = "Dependencies/RfgTools"}, "Beef.Linq" = {Path = "Dependencies/Beef.Linq/src"}, ImGui = {Path = "Dependencies/imgui-beef"}}
33
Unlocked = ["Zlib"]
44

55
[Workspace]

src/Render/ImGui/ImGuiImplWin32.bf

+14-14
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ namespace Nanoforge.Render.ImGui
158158
private void UpdateKeyModifiers()
159159
{
160160
ImGui.IO* io = ImGui.GetIO();
161-
io.AddKeyEvent(.ModCtrl, IsVkDown((i32)KeyCode.LeftControl));
162-
io.AddKeyEvent(.ModShift, IsVkDown((i32)KeyCode.LeftShift));
163-
io.AddKeyEvent(.ModAlt, IsVkDown((i32)KeyCode.LeftAlt));
164-
io.AddKeyEvent(.ModSuper, IsVkDown((i32)KeyCode.Applications));
161+
io.AddKeyEvent(.Mod_Ctrl, IsVkDown((i32)KeyCode.LeftControl));
162+
io.AddKeyEvent(.Mod_Shift, IsVkDown((i32)KeyCode.LeftShift));
163+
io.AddKeyEvent(.Mod_Alt, IsVkDown((i32)KeyCode.LeftAlt));
164+
io.AddKeyEvent(.Mod_Super, IsVkDown((i32)KeyCode.Applications));
165165
}
166166

167167
public void UpdateMouseData()
@@ -250,16 +250,16 @@ namespace Nanoforge.Render.ImGui
250250
case (int)KeyCode.RightAlt: return ImGui.Key.RightAlt;
251251
case (int)KeyCode.WindowsRight: return ImGui.Key.RightSuper;
252252
case (int)KeyCode.Applications: return ImGui.Key.Menu;
253-
case (int)KeyCode.Zero: return ImGui.Key.Number0;
254-
case (int)KeyCode.One: return ImGui.Key.Number1;
255-
case (int)KeyCode.Two: return ImGui.Key.Number2;
256-
case (int)KeyCode.Three: return ImGui.Key.Number3;
257-
case (int)KeyCode.Four: return ImGui.Key.Number4;
258-
case (int)KeyCode.Five: return ImGui.Key.Number5;
259-
case (int)KeyCode.Six: return ImGui.Key.Number6;
260-
case (int)KeyCode.Seven: return ImGui.Key.Number7;
261-
case (int)KeyCode.Eight: return ImGui.Key.Number8;
262-
case (int)KeyCode.Nine: return ImGui.Key.Number9;
253+
case (int)KeyCode.Zero: return ImGui.Key.N0;
254+
case (int)KeyCode.One: return ImGui.Key.N1;
255+
case (int)KeyCode.Two: return ImGui.Key.N2;
256+
case (int)KeyCode.Three: return ImGui.Key.N3;
257+
case (int)KeyCode.Four: return ImGui.Key.N4;
258+
case (int)KeyCode.Five: return ImGui.Key.N5;
259+
case (int)KeyCode.Six: return ImGui.Key.N6;
260+
case (int)KeyCode.Seven: return ImGui.Key.N7;
261+
case (int)KeyCode.Eight: return ImGui.Key.N8;
262+
case (int)KeyCode.Nine: return ImGui.Key.N9;
263263
case (int)KeyCode.A: return ImGui.Key.A;
264264
case (int)KeyCode.B: return ImGui.Key.B;
265265
case (int)KeyCode.C: return ImGui.Key.C;

0 commit comments

Comments
 (0)