コード例 #1
0
 def set_cursor(self, image, hot_spot):
     hx, hy = Vector.from_anything(hot_spot)
     cursor = pyglet.window.ImageMouseCursor(image, hx, hy)
     self.window.set_mouse_cursor(cursor)
コード例 #2
0
 def xyw_from_xyp(self, xyp):
     return self.origin + self.heading * Vector.from_anything(xyp)
コード例 #3
0
ファイル: root.py プロジェクト: kxgames/glooey
 def set_cursor(self, image, hot_spot):
     hx, hy = Vector.from_anything(hot_spot)
     cursor = pyglet.window.ImageMouseCursor(image, hx, hy)
     self.window.set_mouse_cursor(cursor)