MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / OnMouseButtonWheelMoved

Method OnMouseButtonWheelMoved

ZEngine/src/ImguiLayer.cpp:170–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 bool ImguiLayer::OnMouseButtonWheelMoved(Event::MouseButtonWheelEvent& e) {
171 ImGuiIO& io = ImGui::GetIO();
172 if (e.GetOffetX() > 0)
173 io.MouseWheelH += 1;
174 if (e.GetOffetX() < 0)
175 io.MouseWheelH -= 1;
176 if (e.GetOffetY() > 0)
177 io.MouseWheel += 1;
178 if (e.GetOffetY() < 0)
179 io.MouseWheel -= 1;
180 return false;
181 }
182
183 bool ImguiLayer::OnTextInputRaised(Event::TextInputEvent& event) {
184 ImGuiIO& io = ImGui::GetIO();

Callers

nothing calls this directly

Calls 2

GetOffetXMethod · 0.80
GetOffetYMethod · 0.80

Tested by

no test coverage detected