Skip to content

Commit

Permalink
Put mouse cursor in middle at beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Mar 26, 2020
1 parent 063bf18 commit b28d25d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game/controls.py
Expand Up @@ -78,6 +78,8 @@ def update(self, entities_by_filter):


elevate = (ptr.y / base.win.get_y_size()) - 0.5 elevate = (ptr.y / base.win.get_y_size()) - 0.5
base.cam.set_z(2.5 - elevate) base.cam.set_z(2.5 - elevate)
else:
base.win.move_pointer(0, base.win.get_x_size() // 2, base.win.get_y_size() // 2)


self.last_ptr = ptr self.last_ptr = ptr
else: else:
Expand Down

0 comments on commit b28d25d

Please sign in to comment.