Add default case which ignores other mouse buttons

This commit is contained in:
sephiroth99 2015-12-30 12:24:21 -05:00
parent 9451c0b1cf
commit 058ae01568
1 changed files with 6 additions and 0 deletions

View File

@ -274,6 +274,9 @@ void ImGuiDrawer::OnMouseDown(MouseEvent* e) {
case xe::ui::MouseEvent::Button::kRight: {
io.MouseDown[1] = true;
} break;
default: {
// Ignored.
} break;
}
}
@ -292,6 +295,9 @@ void ImGuiDrawer::OnMouseUp(MouseEvent* e) {
case xe::ui::MouseEvent::Button::kRight: {
io.MouseDown[1] = false;
} break;
default: {
// Ignored.
} break;
}
}