Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

fix(gameclient): let CommandMap.ini name the numpad plus and minus keys

Olcay Seygan3f7fdb31a87a
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h b/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
index 566a0810d..2bab4ac00 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
@@ -154,6 +154,8 @@ enum MappableKeyType
MK_INS = KEY_INS,
MK_DEL = KEY_DEL,
MK_KPSLASH = KEY_KPSLASH,
+ MK_KPPLUS = KEY_KPPLUS,
+ MK_KPMINUS = KEY_KPMINUS,
MK_NONE = KEY_NONE
};
@@ -223,6 +225,8 @@ static const LookupListRec KeyNames[] =
{ "KEY_KP8", MK_KP8 },
{ "KEY_KP9", MK_KP9 },
{ "KEY_KP0", MK_KP0 },
+ { "KEY_KPPLUS", MK_KPPLUS },
+ { "KEY_KPMINUS", MK_KPMINUS },
{ "KEY_MINUS", MK_MINUS },
{ "KEY_EQUAL", MK_EQUAL },
{ "KEY_LBRACKET", MK_LBRACKET },