如果我有一台Nexus播放器,并使用多部手机连接( 使用Android TV遥控器 ),是否可以区分代码中的每个控制单元?
(这将是一个很酷的方式来做多人游戏,而不需要昂贵的游戏手柄 - 朋友可以只使用他们的手机)
If I have a Nexus Player, and connect to it with more than one phone (Using Android TV Remote Control), is it possible to distinguish between each controlling unit in the code?
(It would make for a cool way to do multi-player games without the need for expensive game pads - friends can just use their phones)
最满意答案
是的,你可以这样做。 连接到Android设备(包括Nexus Player)时,每个输入设备都会获得一个唯一的标识符。 请参阅此处的文档。 我相信Nexus播放器上已有多人游戏可以实现这一目标(见此处 )。
Yes, you can do this. Each input device is given a unique identifier when connecting to an Android device (including the Nexus Player). Refer to the documentation here. I believe there are already multiplayer games on the Nexus Player which accomplish this (seen here).
更多推荐
发布评论