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.
如果我的 Xbox 360 控制器的 A 按钮被按下,我想检查我的 C# 项目。我尝试过 XNA 和 slimDX,但它不起作用。有人可以给我建议它可能会如何工作吗?
在 XNA
GamePadState currentState = GamePad.GetState(PlayerIndex.One); if (currentState.IsConnected && currentState.Buttons.A == ButtonState.Pressed) { }