Browse Source

allow remapping P for pause and always treat pause button as pause

pull/4019/head^2
qndel 4 years ago committed by Anders Jenbo
parent
commit
4f491cba6f
  1. 10
      Source/diablo.cpp

10
Source/diablo.cpp

@ -445,6 +445,10 @@ void ClosePanels()
void PressKey(int vkey)
{
if (vkey == DVL_VK_PAUSE) {
diablo_pause_game();
return;
}
if (gmenu_presskeys(vkey) || control_presskeys(vkey)) {
return;
}
@ -558,10 +562,6 @@ void PressChar(char vkey)
if (gmenu_is_active() || IsTalkActive() || sgnTimeoutCurs != CURSOR_NONE || MyPlayerIsDead) {
return;
}
if (vkey == 'p' || vkey == 'P') {
diablo_pause_game();
return;
}
if (PauseMode == 2) {
return;
}
@ -1612,7 +1612,7 @@ void InitKeymapActions()
"Pause Game",
N_("Pause Game"),
N_("Pauses the game."),
DVL_VK_PAUSE,
'P',
diablo_pause_game);
sgOptions.Keymapper.AddAction(
"DecreaseGamma",

Loading…
Cancel
Save