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.
我有一个用 C/SDL(一种太空入侵者)编写的游戏,我想开发一个 android 应用程序来控制游戏,就像我的键盘一样。所以我的问题是:什么是成功的最佳途径? - 直接用socket或类似的东西在android App和C程序之间进行通信? - 有一个小程序在 android 应用程序和 C 程序之间建立链接? - 别的?
我建议使用套接字连接,或者如果您的计算机有蓝牙接收器,则建议使用蓝牙连接。蓝牙更节能,并提供必要的低延迟。市场上有一个名为“Bluetooth Remote PC”的应用程序作为概念验证。