def on_mouse_motion(self, x, y, delta_x, delta_y):
    if self.mouse_captured:
        sensitivity = 0.004
        self.camera.rotation[0] -= (delta_x * sensitivity)
        self.camera.rotation[1] += (delta_y * sensitivity)
        self.camera.rotation[1] = max(((- math.tau) / 4), min((math.tau / 4), self.camera.rotation[1]))
def on_mouse_motion(self, x, y, delta_x, delta_y):
    if self.mouse_captured:
        sensitivity = 0.004
        self.camera.rotation[0] -= (delta_x * sensitivity)
        self.camera.rotation[1] += (delta_y * sensitivity)
        self.camera.rotation[1] = max(((- math.tau) / 4), min((math.tau / 4), self.camera.rotation[1]))