The sample application at this point has one big problem: even though the label of the button changes, the action that occurs when you click that button does not.
现在这个示例应用程序有一个大问题:虽然按钮的标签改变了,但是单击按钮时的动作没有变。
The first one I would like to point out is the Change Data Source button.
我想指出的第一个就是“更改数据源”按钮。
It's possible that the player might have the fire button down in one part of the event loop and not in another, so you must sample at the same point you read the input for the game normally.
其可能造成的结果是游戏玩家在游戏事件循环的某一部分按下了发射键,而在另一部分却松开了它。所以必须在同一处进行采样与读入输入。
应用推荐