Exemplo n.º 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();
}
Exemplo n.º 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();
    }
}