예제 #1
0
///////////////////////////////////////////////////////////////////////////////
// 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();
}
예제 #2
0
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();
    }
}