13,208
edits
(→Wiki articles: + Conditions) |
(→Finding keycodes: + Link to latest glut.h in flightgear/windows-3rd-party/... source code. *Not* easy to find.) |
||
Line 81: | Line 81: | ||
== Finding keycodes == | == Finding keycodes == | ||
As mentioned in keyboard.xml, "regular keycodes go up to 255; special keys start at 256, and can be calculated by adding 256 to the GLUT key value in glut.h." | As mentioned in keyboard.xml, "regular keycodes go up to 255; special keys start at 256, and can be calculated by adding 256 to the GLUT key value in {{windows-3rd-party source | ||
| path = msvc140/3rdParty/include/GL/glut.h | |||
| text = glut.h | |||
}}." | |||
For printable/ASCII keys (e.g. any letter of the alphabet, number, or symbol found on a keyboard), this is simply the ASCII value of the key. | For printable/ASCII keys (e.g. any letter of the alphabet, number, or symbol found on a keyboard), this is simply the ASCII value of the key. |