mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt: Fix deprecated use of MidButton
MidButton has been deprecated since Qt 4.7. The replacement is MiddleButton.
This commit is contained in:
@ -141,7 +141,7 @@ void MappingButton::mouseReleaseEvent(QMouseEvent* event)
|
|||||||
{
|
{
|
||||||
switch (event->button())
|
switch (event->button())
|
||||||
{
|
{
|
||||||
case Qt::MouseButton::MidButton:
|
case Qt::MouseButton::MiddleButton:
|
||||||
Clear();
|
Clear();
|
||||||
return;
|
return;
|
||||||
case Qt::MouseButton::RightButton:
|
case Qt::MouseButton::RightButton:
|
||||||
|
@ -247,7 +247,7 @@ void RenderWidget::OnFreeLookMouseMove(QMouseEvent* event)
|
|||||||
// Camera Pitch and Yaw:
|
// Camera Pitch and Yaw:
|
||||||
g_freelook_camera.Rotate(Common::Vec3{mouse_move.y() / 200.f, mouse_move.x() / 200.f, 0.f});
|
g_freelook_camera.Rotate(Common::Vec3{mouse_move.y() / 200.f, mouse_move.x() / 200.f, 0.f});
|
||||||
}
|
}
|
||||||
else if (event->buttons() & Qt::MidButton)
|
else if (event->buttons() & Qt::MiddleButton)
|
||||||
{
|
{
|
||||||
// Camera Roll:
|
// Camera Roll:
|
||||||
g_freelook_camera.Rotate({0.f, 0.f, mouse_move.x() / 200.f});
|
g_freelook_camera.Rotate({0.f, 0.f, mouse_move.x() / 200.f});
|
||||||
|
Reference in New Issue
Block a user