mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:23:51 +00:00
Make 'Toggle HUD' hotkey configurable
This commit is contained in:
parent
2b8e976c6a
commit
4d4663e0ad
1 changed files with 5 additions and 1 deletions
|
@ -1601,6 +1601,8 @@ namespace MWInput
|
||||||
return "Zoom In";
|
return "Zoom In";
|
||||||
else if (action == A_ZoomOut)
|
else if (action == A_ZoomOut)
|
||||||
return "Zoom Out";
|
return "Zoom Out";
|
||||||
|
else if (action == A_ToggleHUD)
|
||||||
|
return "Toggle HUD";
|
||||||
|
|
||||||
descriptions[A_Use] = "sUse";
|
descriptions[A_Use] = "sUse";
|
||||||
descriptions[A_Activate] = "sActivate";
|
descriptions[A_Activate] = "sActivate";
|
||||||
|
@ -1779,6 +1781,7 @@ namespace MWInput
|
||||||
ret.push_back(A_Console);
|
ret.push_back(A_Console);
|
||||||
ret.push_back(A_QuickSave);
|
ret.push_back(A_QuickSave);
|
||||||
ret.push_back(A_QuickLoad);
|
ret.push_back(A_QuickLoad);
|
||||||
|
ret.push_back(A_ToggleHUD);
|
||||||
ret.push_back(A_Screenshot);
|
ret.push_back(A_Screenshot);
|
||||||
ret.push_back(A_QuickKeysMenu);
|
ret.push_back(A_QuickKeysMenu);
|
||||||
ret.push_back(A_QuickKey1);
|
ret.push_back(A_QuickKey1);
|
||||||
|
@ -1812,6 +1815,7 @@ namespace MWInput
|
||||||
ret.push_back(A_Rest);
|
ret.push_back(A_Rest);
|
||||||
ret.push_back(A_QuickSave);
|
ret.push_back(A_QuickSave);
|
||||||
ret.push_back(A_QuickLoad);
|
ret.push_back(A_QuickLoad);
|
||||||
|
ret.push_back(A_ToggleHUD);
|
||||||
ret.push_back(A_Screenshot);
|
ret.push_back(A_Screenshot);
|
||||||
ret.push_back(A_QuickKeysMenu);
|
ret.push_back(A_QuickKeysMenu);
|
||||||
ret.push_back(A_QuickKey1);
|
ret.push_back(A_QuickKey1);
|
||||||
|
@ -1852,7 +1856,7 @@ namespace MWInput
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disallow binding reserved keys
|
// Disallow binding reserved keys
|
||||||
if (key == SDL_SCANCODE_F3 || key == SDL_SCANCODE_F4 || key == SDL_SCANCODE_F10 || key == SDL_SCANCODE_F11)
|
if (key == SDL_SCANCODE_F3 || key == SDL_SCANCODE_F4 || key == SDL_SCANCODE_F10)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
|
|
Loading…
Reference in a new issue