Logo Search packages:      
Sourcecode: widelands version File versions  Download package

bool Map_View::handle_mousemove ( const Uint8  state,
int  x,
int  y,
int  xdiff,
int  ydiff 
) [virtual]

Called when the mouse is moved while inside the panel

Reimplemented from UI::Panel.

Definition at line 167 of file mapview.cc.

References Graphic::update_fullscreen().

      if (m_dragging)
            if (state & SDL_BUTTON(SDL_BUTTON_RIGHT))
                  set_rel_viewpoint(Point(xdiff, ydiff));
            else stop_dragging();

      if (not intbase().get_sel_freeze()) track_sel(Point(x, y));

      return true;

Generated by  Doxygen 1.6.0   Back to index