Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def on_mouse_move(x, y):
- xpos = glut.glutGet(glut.GLUT_WINDOW_WIDTH) / 2
- ypos = glut.glutGet(glut.GLUT_WINDOW_HEIGHT) / 2
- glut.glutWarpPointer(xpos, ypos)
- glut.glutPassiveMotionFunc(on_mouse_move)
- glut.glutMotionFunc(on_mouse_move)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement