Browse Source

secondary button should be called mouse3

David Rose 18 years ago
parent
commit
3d86e7bf8b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      panda/src/osxdisplay/osxGraphicsWindow.cxx

+ 4 - 4
panda/src/osxdisplay/osxGraphicsWindow.cxx

@@ -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;