Browse Source

oobe control key needs to be shift, not control, to avoid conflict with existing trackball control keys

David Rose 14 years ago
parent
commit
e2a7b81ed5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      direct/src/showbase/ShowBase.py

+ 4 - 4
direct/src/showbase/ShowBase.py

@@ -2131,11 +2131,11 @@ class ShowBase(DirectObject.DirectObject):
             self.oobeCamera.clearMat()
             self.oobeCamera.clearMat()
 
 
             # Make the regular MouseInterface node respond only when
             # Make the regular MouseInterface node respond only when
-            # the control button is pressed.  And the oobe node will
-            # respond only when control is *not* pressed.
+            # the shift button is pressed.  And the oobe node will
+            # respond only when shift is *not* pressed.
 
 
-            self.mouseInterfaceNode.requireButton(KeyboardButton.control(), True)
-            self.oobeTrackball.node().requireButton(KeyboardButton.control(), False)
+            self.mouseInterfaceNode.requireButton(KeyboardButton.shift(), True)
+            self.oobeTrackball.node().requireButton(KeyboardButton.shift(), False)
             self.oobeTrackball.reparentTo(self.mouseWatcher)
             self.oobeTrackball.reparentTo(self.mouseWatcher)
 
 
             # Set our initial OOB position to be just behind the camera.
             # Set our initial OOB position to be just behind the camera.