mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: input F1..F25 key codes & add binding 'chunks.reload'
This commit is contained in:
parent
d316a5f818
commit
ad62b759fb
8 changed files with 18 additions and 4 deletions
|
|
@ -77,7 +77,7 @@ void input_util::initialize() {
|
|||
keycodes[std::to_string(i)] = GLFW_KEY_0+i;
|
||||
}
|
||||
for (int i = 0; i < 25; i++) {
|
||||
keycodes["f"+std::to_string(i)] = GLFW_KEY_F1+i;
|
||||
keycodes["f"+std::to_string(i+1)] = GLFW_KEY_F1+i;
|
||||
}
|
||||
for (char i = 'a'; i <= 'z'; i++) {
|
||||
keycodes[std::string({i})] = GLFW_KEY_A-'a'+i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue