/////////////////////////////////////////////////////////////////////////////// // Zooms the camera in and out. // void RenderWindow::OnMouseWheel( wxMouseEvent& args ) { args.Skip(); Helium::MouseScrollInput input; Helium::ConvertEvent( args, input ); m_Camera.MouseScroll( input ); args.Skip( input.GetSkipped() ); Refresh(); }
void ViewCanvas::OnMouseScroll(wxMouseEvent& e) { if (m_Focused) { Helium::MouseScrollInput input; Helium::ConvertEvent( e, input ); m_Viewport.MouseScroll( input ); e.Skip( input.GetSkipped() ); Refresh(); Update(); } }