作者:佳品h空投 | 来源:互联网 | 2023-02-09 13:37
Iwantedtoknowhowtodetectwhentwokeysaresimultaneouslypressedusingpyglet.Icurrentlyha
I wanted to know how to detect when two keys are simultaneously pressed using pyglet. I currently have
我想知道如何检测何时使用pyglet同时按下两个键。我现在有
def on_text_motion(self, motion):
(dx,dy) = ARROW_KEY_TO_VERSOR[motion]
self.window.move_dx_dy((dx,dy))
But this only gets arrow keys one at a time... I'd like to distinguish between the combination UP+LEFT and UP, then LEFT...
但这只能一次获得箭头键...我想区分组合UP + LEFT和UP,然后LEFT ...
Hope I made myself clear Manu
希望我自己清楚马努
1 个解决方案