Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. from direct.showbase.ShowBase import ShowBase
  2. from panda3d.core import WindowProperties
  3.  
  4. class MyApp(ShowBase):
  5.     def __init__(self):
  6.         ShowBase.__init__(self)
  7.         self.disableMouse()
  8.         props = WindowProperties()
  9.         props.setMouseMode(WindowProperties.M_relative)
  10.         base.win.requestProperties(props)
  11.  
  12. app = MyApp()
  13. app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement