* support mouse_moved_epsilon system in camera freelook + refactor RadiantWindowObserver

This commit is contained in:
Garux
2018-04-14 23:12:53 +03:00
parent d636107f68
commit 93aef246ea
5 changed files with 53 additions and 59 deletions

View File

@@ -1015,7 +1015,7 @@ gboolean selection_motion_freemove( GtkWidget *widget, GdkEventMotion *event, Wi
void selection_motion_freemove( gdouble x, gdouble y, guint state, void* data ){
//globalOutputStream() << "motion... ";
CamWnd* camwnd = reinterpret_cast<CamWnd*>( data );
camwnd->m_window_observer->setMouseMoved();
camwnd->m_window_observer->incMouseMove( WindowVector_forDouble( x, y ) );
camwnd->m_window_observer->onMouseMotion( windowvector_for_widget_centre( camwnd->m_gl_widget ), modifiers_for_state( state ) );
}