Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from direct.showbase.ShowBase import ShowBase
- from panda3d.core import WindowProperties
- class MyApp(ShowBase):
- def __init__(self):
- ShowBase.__init__(self)
- self.disableMouse()
- props = WindowProperties()
- props.setMouseMode(WindowProperties.M_relative)
- base.win.requestProperties(props)
- app = MyApp()
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement