如何使用KeyEventDispatcher
我一直在尝试制作一个 Pong 克隆作为初学者的项目,但我遇到了障碍。我已经设法达到键盘支持的目的,但是键盘重复延迟开始出现。我还没有找到任何可用的方法来使用 KeyEventDispatcher。它甚至不会启动dispatchKeyEvent()方法。我将如何使用这个?
提前致谢。
PS:到目前为止,这是我的来源:http://pastebin.com/N9fLMzFT
I have been trying to make a Pong clone as sort of a beginner's project, and I've hit a road block. I have managed to get to the point of keyboard support, but the keyboard repeat delay kicks in. I haven't found any usable way to use KeyEventDispatcher. It won't even initiate the dispatchKeyEvent() method. How would I go about using this?
Thanks in advance.
PS: Here is my source so far: http://pastebin.com/N9fLMzFT
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你必须寻找 KeyBindings
you have to look for KeyBindings