Add default case which ignores other mouse buttons
This commit is contained in:
parent
9451c0b1cf
commit
058ae01568
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue