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.
我想将键盘输入作为变量存储在类(而不是函数)中,这样它们就不会被硬编码。
如果(FlxG.keys.(myKeyVar))
任何帮助表示赞赏。
忽略了这一点。
FlxG.keys.pressed(myKeyVar);
啊