【发布时间】:2011-01-30 23:43:30
【问题描述】:
我想知道如何为在我的 Mac 后台运行的 python/pygame 程序提供键盘输入。
已将此问题移至:
How to test if global key is pressed on Mac using PyObjC and Python.
并且不再使用 Pygame。
【问题讨论】:
-
为什么,确切地说,你是 A) 在后台运行游戏 B) 想要向它发送输入?
-
它不是游戏,我只是使用 pygame 的简单易用的输入/输出功能。我想在它在后台时向它发送输入,因为我想在它运行时使用其他应用程序。
标签: python macos input background pygame