| 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(); |