|
|
@@ -67,7 +67,7 @@ class App(ShowBase):
|
|
|
self.manualRecenterMouse = True
|
|
|
|
|
|
# make a box to move with the mouse
|
|
|
- self.model = self.loader.loadModel("box.egg")
|
|
|
+ self.model = self.loader.loadModel("box")
|
|
|
self.model.reparentTo(self.render)
|
|
|
|
|
|
self.cam.setPos(0, -5, 0)
|
|
|
@@ -76,7 +76,7 @@ class App(ShowBase):
|
|
|
self.mouseTask = taskMgr.add(self.mouseTask, "Mouse Task")
|
|
|
|
|
|
def setMouseMode(self, mode):
|
|
|
- print "Changing mode to",mode
|
|
|
+ print("Changing mode to %s" % mode)
|
|
|
|
|
|
self.mouseMode = mode
|
|
|
|
|
|
@@ -92,7 +92,7 @@ class App(ShowBase):
|
|
|
|
|
|
actualMode = wp.getMouseMode()
|
|
|
if self.mouseMode != actualMode:
|
|
|
- print "ACTUAL MOUSE MODE:", actualMode
|
|
|
+ print("ACTUAL MOUSE MODE: %s" % actualMode)
|
|
|
|
|
|
self.mouseMode = actualMode
|
|
|
|
|
|
@@ -107,11 +107,11 @@ class App(ShowBase):
|
|
|
|
|
|
|
|
|
def toggleRecenter(self):
|
|
|
- print "Toggling re-center behavior"
|
|
|
+ print("Toggling re-center behavior")
|
|
|
self.manualRecenterMouse = not self.manualRecenterMouse
|
|
|
|
|
|
def toggleMouse(self):
|
|
|
- print "Toggling mouse visibility"
|
|
|
+ print("Toggling mouse visibility")
|
|
|
|
|
|
self.hideMouse = not self.hideMouse
|
|
|
|