C++ simulate pressing of equal sign (=) and question mark (?)

前端 未结 1 784
野趣味
野趣味 2021-01-27 08:22

Having some problems with simulating a keypress of equal sign (=) and question mark (?). I figured if there\'s no virtual key code for those two, I should combine key presses an

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-27 09:04

    The = character is the non-capitalized character on the =/+ key, while + is the capitalized character. Thus, to output an equals sign, simply use the (badly named) VK_OEM_PLUS virtual key code.

    0 讨论(0)
提交回复
热议问题