mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
Merge pull request #1034 from ostermine/feat/punctuation-keys
fix key bindings to punctuation keys lost after restart
This commit is contained in:
commit
51960b2449
3 changed files with 14 additions and 0 deletions
|
|
@ -36,6 +36,16 @@ static std::unordered_map<std::string, int> keycodes {
|
|||
{"left-super", GLFW_KEY_LEFT_SUPER},
|
||||
{"right-super", GLFW_KEY_RIGHT_SUPER},
|
||||
{"grave-accent", GLFW_KEY_GRAVE_ACCENT},
|
||||
{"minus", GLFW_KEY_MINUS},
|
||||
{"equal", GLFW_KEY_EQUAL},
|
||||
{"left-bracket", GLFW_KEY_LEFT_BRACKET},
|
||||
{"right-bracket", GLFW_KEY_RIGHT_BRACKET},
|
||||
{"backslash", GLFW_KEY_BACKSLASH},
|
||||
{"semicolon", GLFW_KEY_SEMICOLON},
|
||||
{"apostrophe", GLFW_KEY_APOSTROPHE},
|
||||
{"comma", GLFW_KEY_COMMA},
|
||||
{"period", GLFW_KEY_PERIOD},
|
||||
{"slash", GLFW_KEY_SLASH},
|
||||
{"left", GLFW_KEY_LEFT},
|
||||
{"right", GLFW_KEY_RIGHT},
|
||||
{"down", GLFW_KEY_DOWN},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue