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.
我想从 macOS 应用程序中的苹果遥控器捕获事件。
我尝试使用 EventTap 从系统中捕获 CGEvent 并发现它确实发送了一个事件。然后我把它变成NSEvent,然后发现所有按钮的data1和data2都是一样的。我现在很困惑。