mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
secondary button should be called mouse3
This commit is contained in:
parent
88fee08547
commit
3d86e7bf8b
@ -1291,9 +1291,9 @@ void osxGraphicsWindow::SystemSetWindowForground(bool forground)
|
|||||||
}
|
}
|
||||||
ButtonHandle button_h = MouseButton::one();
|
ButtonHandle button_h = MouseButton::one();
|
||||||
if(kEventMouseButtonSecondary == button)
|
if(kEventMouseButtonSecondary == button)
|
||||||
button_h = MouseButton::two();
|
|
||||||
if(kEventMouseButtonTertiary == button)
|
|
||||||
button_h = MouseButton::three();
|
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].set_pointer_in_window((int)qdGlobalPoint.h, (int)qdGlobalPoint.v);
|
||||||
_input_devices[0].button_down(button_h);
|
_input_devices[0].button_down(button_h);
|
||||||
result = noErr;
|
result = noErr;
|
||||||
@ -1318,9 +1318,9 @@ void osxGraphicsWindow::SystemSetWindowForground(bool forground)
|
|||||||
}
|
}
|
||||||
ButtonHandle button_h = MouseButton::one();
|
ButtonHandle button_h = MouseButton::one();
|
||||||
if(kEventMouseButtonSecondary == button)
|
if(kEventMouseButtonSecondary == button)
|
||||||
button_h = MouseButton::two();
|
|
||||||
if(kEventMouseButtonTertiary == button)
|
|
||||||
button_h = MouseButton::three();
|
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].set_pointer_in_window((int)qdGlobalPoint.h, (int)qdGlobalPoint.v);
|
||||||
_input_devices[0].button_up(button_h);
|
_input_devices[0].button_up(button_h);
|
||||||
result = noErr;
|
result = noErr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user