summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-14 13:52:10 +0300
committerSergeanur <s.anureev@yandex.ua>2020-08-14 13:52:10 +0300
commit28dc67dc86c9b7f1a6ff4f74c8c5b1f52a278a54 (patch)
tree5979c42ba38ccc070ad3e6e3d308d86e7b7cdef6
parent85d76dc1718a1399a08693cba2cc299f90f21a15 (diff)
parent2a0a508a10ca3154e8bdc60ffc466ad6797a4394 (diff)
Merge branch 'master' into miami
# Conflicts: # src/core/Game.cpp # src/core/re3.cpp # src/extras/postfx.cpp # src/extras/postfx.h # src/extras/shaders/Makefile # src/render/Clouds.cpp # src/render/Hud.cpp # src/render/MBlur.cpp # src/render/Sprite2d.cpp
-rw-r--r--src/core/ControllerConfig.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/ControllerConfig.cpp b/src/core/ControllerConfig.cpp
index d194cebb..38afdd0e 100644
--- a/src/core/ControllerConfig.cpp
+++ b/src/core/ControllerConfig.cpp
@@ -651,6 +651,11 @@ void CControllerConfigManager::AffectControllerStateOn_ButtonDown(int32 button,
}
AffectControllerStateOn_ButtonDown_AllStates(button, type, *state);
+
+#ifdef REGISTER_START_BUTTON
+ if (button == 12)
+ state->Start = 255;
+#endif
}
}
}
@@ -1060,6 +1065,11 @@ void CControllerConfigManager::AffectControllerStateOn_ButtonUp(int32 button, eC
{
if (FrontEndMenuManager.GetIsMenuActive())
AffectControllerStateOn_ButtonUp_All_Player_States(button, type, *state);
+
+#ifdef REGISTER_START_BUTTON
+ if (button == 12)
+ state->Start = 0;
+#endif
}
}
}