1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00
This commit is contained in:
y5nw 2025-06-01 12:40:10 +02:00
parent eb5ff5d0df
commit afceefc985

View file

@ -77,10 +77,10 @@ void MyEventReceiver::reloadKeybindings()
keysListenedFor.clear();
for (int i = 0; i < KeyType::INTERNAL_ENUM_COUNT; i++) {
GameKeyType game_key = static_cast<GameKeyType>(i);
keybindings[i].emplace_back(game_key);
for (auto key: keybindings[i]) {
listenForKey(key, game_key);
}
listenForKey(game_key, game_key);
}
}