Using GetKeyState()

后端 未结 5 1319
花落未央
花落未央 2020-12-10 15:46

I would like to have a boolean event toggle when a key is pressed. Specifically, the \'s\' key. I have been pointed to the function GetKeyState(), which supposedly works und

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 16:18

    Bit late for this but the high order bit is 0x80000000 not 0x8000, change this and it will work fine.

    The other bit - useful for nothing - it acts as if you pressed CAPS LOCK when you pressed LSHIFT.

提交回复
热议问题