Skip to content

Commit 4050b76

Browse files
committed
Very minor code cleanup in ImGuiController.
1 parent bc625f6 commit 4050b76

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/ImGui.NET.SampleProgram/ImGuiController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private void SetPerFrameImGuiData(float deltaSeconds)
328328

329329
private void UpdateImGuiInput(InputSnapshot snapshot)
330330
{
331-
var io = ImGui.GetIO();
331+
ImGuiIOPtr io = ImGui.GetIO();
332332

333333
Vector2 mousePosition = snapshot.MousePosition;
334334

@@ -340,8 +340,6 @@ private void UpdateImGuiInput(InputSnapshot snapshot)
340340
float delta = snapshot.WheelDelta;
341341
io.MouseWheel = delta;
342342

343-
io.MouseWheel = delta;
344-
345343
IReadOnlyList<char> keyCharPresses = snapshot.KeyCharPresses;
346344
for (int i = 0; i < keyCharPresses.Count; i++)
347345
{

0 commit comments

Comments
 (0)