We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc9937 commit 154c836Copy full SHA for 154c836
src/xrGame/xr_level_controller.cpp
@@ -37,15 +37,13 @@ void initialize_bindings()
37
38
void remap_keys()
39
{
40
- int idx = 0;
41
string128 buff;
42
// Log("Keys remap:");
43
- while (keyboards[idx].key_name)
+ for (int idx = 0; keyboards[idx].key_name; ++idx)
44
45
buff[0] = 0;
46
_keyboard& kb = keyboards[idx];
47
- const bool res = pInput->get_dik_name(kb.dik, buff, sizeof(buff));
48
- if (res)
+ if (pInput->get_dik_name(kb.dik, buff, sizeof(buff)))
49
kb.key_local_name = buff;
50
else
51
@@ -55,7 +53,6 @@ void remap_keys()
55
53
}
56
54
57
// Msg("[%s]-[%s]", kb.key_name, kb.key_local_name.c_str());
58
- ++idx;
59
60
61
0 commit comments