Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
即使在调用 之后sdl2.mouse.SDL_ShowCursor(0),在运行时有效地隐藏了光标,当进行长时间的迭代(出于我的目的,将大量图像加载到 RAM 中)时,仍然会出现沙滩球光标。
sdl2.mouse.SDL_ShowCursor(0)
关键是不要发生这种情况,因为我正在写的是一个关于视觉注意力的认知心理学实验——这种视觉分心绝对不会发生。
通过每次循环调用一次 sdl2.SDL_PumpEvents() 自己解决了这个问题。