1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
y5nw 2025-06-01 12:40:10 +02:00 committed by y5nw
parent 016e5bb46c
commit c710e35ad8

View file

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