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.
我希望能够从我正在开发的应用程序外部检测到控制器(按钮和操纵杆)的使用。像这样的应用程序能够拦截操纵杆事件,所以我知道这是可能的。如何才能做到这一点?
没有这样的方法可以从应用程序外部检测对控制器的任何使用。您所说的可能是单击它或某些操作时发送广播。然后你可以注册一个 BroadcastReceiver 来检测它。