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.
如果我有一个 Nexus Player,并使用多个手机连接它(使用 Android TV 遥控器),是否可以区分代码中的每个控制单元?
(这将是一种很酷的方式来进行多人游戏,而无需昂贵的游戏手柄 - 朋友们可以使用他们的手机)
是的,你可以这样做。在连接到 Android 设备(包括 Nexus Player)时,每个输入设备都会被赋予一个唯一标识符。请参阅此处的文档。我相信 Nexus Player 上已经有多人游戏可以做到这一点(见这里)。