secondary button should be called mouse3

This commit is contained in:
David Rose 2007-04-18 21:39:34 +00:00
parent 88fee08547
commit 3d86e7bf8b

View File

@ -1291,9 +1291,9 @@ void osxGraphicsWindow::SystemSetWindowForground(bool forground)
}
ButtonHandle button_h = MouseButton::one();
if(kEventMouseButtonSecondary == button)
button_h = MouseButton::two();
if(kEventMouseButtonTertiary == button)
button_h = MouseButton::three();
if(kEventMouseButtonTertiary == button)
button_h = MouseButton::two();
_input_devices[0].set_pointer_in_window((int)qdGlobalPoint.h, (int)qdGlobalPoint.v);
_input_devices[0].button_down(button_h);
result = noErr;
@ -1318,9 +1318,9 @@ void osxGraphicsWindow::SystemSetWindowForground(bool forground)
}
ButtonHandle button_h = MouseButton::one();
if(kEventMouseButtonSecondary == button)
button_h = MouseButton::two();
if(kEventMouseButtonTertiary == button)
button_h = MouseButton::three();
if(kEventMouseButtonTertiary == button)
button_h = MouseButton::two();
_input_devices[0].set_pointer_in_window((int)qdGlobalPoint.h, (int)qdGlobalPoint.v);
_input_devices[0].button_up(button_h);
result = noErr;