2

我使用 GLUT 来处理Bitfighter的键盘输入。我已经构建了一个不错的小键盘事件抽象层,它适用于大多数事情,但我遇到了一些令人沮丧的限制。

例如,当按下 Ctrl 时,数字键、加号、减号和引号键似乎不会触发 glutKeyboardFunc() 回调。

我意识到 GLUT 在某些方面非常有限,但我想知道是否有人知道在按下 Ctrl 时是否可以检测到数字键或加号/减号。

如果它有助于解决这个限制,我会考虑切换到 FreeGLUT。

4

1 回答 1

0

I did a lot of research on this, and concluded it simply doesn't work.

For this reason, and other frustrations, we eventually ported our code from GLUT to SDL.

于 2012-10-15T14:53:30.187 回答