MCPcopy Index your code
hub / github.com/fogleman/Minecraft / set_exclusive_mouse

Method set_exclusive_mouse

main.py:497–503  ·  view source on GitHub ↗

If `exclusive` is True, the game will capture the mouse, if False the game will ignore the mouse.

(self, exclusive)

Source from the content-addressed store, hash-verified

495 pyglet.clock.schedule_interval(self.update, 1.0 / TICKS_PER_SEC)
496
497 def set_exclusive_mouse(self, exclusive):
498 """ If `exclusive` is True, the game will capture the mouse, if False
499 the game will ignore the mouse.
500
501 """
502 super(Window, self).set_exclusive_mouse(exclusive)
503 self.exclusive = exclusive
504
505 def get_sight_vector(self):
506 """ Returns the current line of sight vector indicating the direction

Callers 3

on_mouse_pressMethod · 0.95
on_key_pressMethod · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected