ignore mouse button 4/5 when drawing, fixes #626
perhaps in the future we'll add a use to these
This commit is contained in:
parent
4593a95405
commit
abce030d5d
@ -1198,10 +1198,12 @@ void GameView::OnMouseDown(int x, int y, unsigned button)
|
||||
// update tool index, set new "last" tool so GameView can detect certain tools properly
|
||||
if (button == SDL_BUTTON_LEFT)
|
||||
toolIndex = 0;
|
||||
if (button == SDL_BUTTON_RIGHT)
|
||||
else if (button == SDL_BUTTON_RIGHT)
|
||||
toolIndex = 1;
|
||||
if (button == SDL_BUTTON_MIDDLE)
|
||||
else if (button == SDL_BUTTON_MIDDLE)
|
||||
toolIndex = 2;
|
||||
else
|
||||
return;
|
||||
Tool *lastTool = c->GetActiveTool(toolIndex);
|
||||
c->SetLastTool(lastTool);
|
||||
UpdateDrawMode();
|
||||
|
Reference in New Issue
Block a user