隐藏时使用 Pygame 鼠标
Use Pygame mouse while hidden
有没有什么办法可以同时使用鼠标,
pygame.mouse.set_visible(False)
已激活。当前仅鼠标 returns 尝试使用右下角坐标。需要在隐藏鼠标的情况下获取正确的坐标。
无法在他们的 documentation 找到答案。
我使用隐形光标解决了这个问题。
pygame.mouse.set_cursor((8,8),(0,0),(0,0,0,0,0,0,0,0),(0,0,0,0,0,0,0,0))
有没有什么办法可以同时使用鼠标,
pygame.mouse.set_visible(False)
已激活。当前仅鼠标 returns 尝试使用右下角坐标。需要在隐藏鼠标的情况下获取正确的坐标。
无法在他们的 documentation 找到答案。
我使用隐形光标解决了这个问题。
pygame.mouse.set_cursor((8,8),(0,0),(0,0,0,0,0,0,0,0),(0,0,0,0,0,0,0,0))