Detect in python which keys are pressed

前端 未结 3 417
太阳男子
太阳男子 2020-11-28 14:11

I need to know which key is being pressed right now. I\'m not looking to capture some specific keys to trigger an event or anything like that,

I want to know which

3条回答
  •  臣服心动
    2020-11-28 15:03

    I found the answer using a link in a related question to pyHook:

    pyHook tutorial: capturing keypress events

提交回复
热议问题