remove "handlemouse" setting

This commit is contained in:
FunkyFr3sh 2021-06-16 05:57:19 +02:00
parent abdb74942b
commit 684224b833
10 changed files with 175 additions and 181 deletions

View file

@ -40,7 +40,7 @@ void cfg_load()
g_ddraw->border = cfg_get_bool("border", TRUE);
g_ddraw->boxing = cfg_get_bool("boxing", FALSE);
g_ddraw->maintas = cfg_get_bool("maintas", FALSE);
g_ddraw->adjmouse = cfg_get_bool("adjmouse", FALSE);
g_ddraw->adjmouse = cfg_get_bool("adjmouse", TRUE);
g_ddraw->devmode = cfg_get_bool("devmode", FALSE);
g_ddraw->vsync = cfg_get_bool("vsync", FALSE);
g_ddraw->noactivateapp = cfg_get_bool("noactivateapp", FALSE);
@ -112,11 +112,6 @@ void cfg_load()
g_config.window_rect.left = g_config.window_rect.top = -32000;
}
if (!(g_ddraw->handlemouse = cfg_get_bool("handlemouse", TRUE)))
{
g_ddraw->adjmouse = TRUE;
}
if (cfg_get_bool("singlecpu", TRUE))
{
SetProcessAffinityMask(GetCurrentProcess(), 1);
@ -244,10 +239,10 @@ static void cfg_create_ini()
"; Run in windowed mode rather than going fullscreen\n"
"windowed=false\n"
"\n"
"; Maintain aspect ratio - (Requires 'handlemouse=true')\n"
"; Maintain aspect ratio\n"
"maintas=false\n"
"\n"
"; Windowboxing / Integer Scaling - (Requires 'handlemouse=true')\n"
"; Windowboxing / Integer Scaling\n"
"boxing=false\n"
"\n"
"; Real rendering rate, -1 = screen rate, 0 = unlimited, n = cap\n"
@ -258,9 +253,9 @@ static void cfg_create_ini()
"; Note: vsync=true can fix tearing but it will cause input lag\n"
"vsync=false\n"
"\n"
"; Automatic mouse sensitivity scaling - (Requires 'handlemouse=true')\n"
"; Automatic mouse sensitivity scaling\n"
"; Note: Only works if stretching is enabled. Sensitivity will be adjusted according to the size of the window\n"
"adjmouse=false\n"
"adjmouse=true\n"
"\n"
"; Preliminary libretro shader support - (Requires 'renderer=opengl') https://github.com/libretro/glsl-shaders\n"
"; 2x scaling example: https://imgur.com/a/kxsM1oY - 4x scaling example: https://imgur.com/a/wjrhpFV\n"
@ -306,10 +301,6 @@ static void cfg_create_ini()
"; Note: Usually one of the following values will work: 60 / 30 / 25 / 20 / 15 (lower value = slower game speed)\n"
"maxgameticks=0\n"
"\n"
"; Gives cnc-ddraw full control over the mouse cursor (required for adjmouse/boxing/maintas)\n"
"; Note: Set this to 'false' if your cursor becomes invisible at some places in the game\n"
"handlemouse=true\n"
"\n"
"; Windows API Hooking, Possible values: 0 = disabled, 1 = IAT Hooking, 2 = Microsoft Detours, 3 = IAT+Detours Hooking (All Modules), 4 = IAT Hooking (All Modules)\n"
"; Note: Change this value if windowed mode or upscaling isn't working properly\n"
"; Note: 'hook=2' will usually work for problematic games, but 'hook=2' should be combined with renderer=gdi\n"
@ -345,7 +336,7 @@ static void cfg_create_ini()
"renderer=opengl\n"
"nonexclusive=true\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"resolutions=2\n"
"\n"
"; Age of Empires: The Rise of Rome\n"
@ -353,7 +344,7 @@ static void cfg_create_ini()
"renderer=opengl\n"
"nonexclusive=true\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"resolutions=2\n"
"\n"
"; Age of Empires II\n"
@ -361,14 +352,14 @@ static void cfg_create_ini()
"renderer=opengl\n"
"nonexclusive=true\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Age of Empires II: The Conquerors\n"
"[age2_x1]\n"
"renderer=opengl\n"
"nonexclusive=true\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; American Conquest\n"
"[DMCR]\n"
@ -391,17 +382,17 @@ static void cfg_create_ini()
"; Anstoss 3\n"
"[anstoss3]\n"
"renderer=gdi\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Anno 1602\n"
"[1602]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"renderer=gdi\n"
"hook=2\n"
"\n"
"; Alien Nations\n"
"[AN]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Atlantis\n"
"[ATLANTIS]\n"
@ -462,107 +453,125 @@ static void cfg_create_ini()
"[game]\n"
"checkfile=.\\blowfish.dll\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Tiberian Sun Demo\n"
"[SUN]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Tiberian Sun - CnCNet\n"
"[ts-spawn]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Red Alert 2 - XWIS\n"
"[ra2]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Red Alert 2 - XWIS\n"
"[Red Alert 2]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Red Alert 2: Yuri's Revenge\n"
"[gamemd]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Red Alert 2: Yuri's Revenge - ?ModExe?\n"
"[ra2md]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Red Alert 2: Yuri's Revenge - CnCNet\n"
"[gamemd-spawn]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Command & Conquer: Red Alert 2: Yuri's Revenge - XWIS\n"
"[Yuri's Revenge]\n"
"noactivateapp=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maxfps=60\n"
"minfps=-1\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Caesar III\n"
"[c3]\n"
"nonexclusive=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Chris Sawyer's Locomotion\n"
"[LOCO]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Cultures 2\n"
"[Cultures2]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Cultures 2 MP\n"
"[Cultures2MP]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Close Combat 2: A Bridge Too Far\n"
"[cc2]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"fixpitch=true\n"
"renderer=opengl\n"
"nonexclusive=true\n"
"\n"
"; Close Combat 3: The Russian Front\n"
"[cc3]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"fixpitch=true\n"
"renderer=opengl\n"
"nonexclusive=true\n"
"\n"
"; Close Combat 4: The Battle of the Bulge\n"
"[cc4]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"fixpitch=true\n"
"renderer=opengl\n"
"nonexclusive=true\n"
"\n"
"; Close Combat 5: Invasion: Normandy\n"
"[cc5]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"fixpitch=true\n"
"renderer=opengl\n"
"nonexclusive=true\n"
@ -577,7 +586,7 @@ static void cfg_create_ini()
"\n"
"; Corsairs Gold\n"
"[corsairs]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"renderer=gdi\n"
"hook=2\n"
"\n"
@ -600,10 +609,12 @@ static void cfg_create_ini()
"\n"
"; Future Cop - L.A.P.D.\n"
"[FCopLAPD]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"renderer=gdi\n"
"hook=2\n"
"passthrough=false\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; G-Police\n"
"[GPOLICE]\n"
@ -611,7 +622,7 @@ static void cfg_create_ini()
"\n"
"; Gangsters: Organized Crime\n"
"[gangsters]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"renderer=opengl\n"
"nonexclusive=true\n"
"\n"
@ -635,7 +646,7 @@ static void cfg_create_ini()
"\n"
"; Heroes of Might and Magic II: The Succession Wars\n"
"[HEROES2W]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Hard Truck: Road to Victory\n"
"[htruck]\n"
@ -645,13 +656,13 @@ static void cfg_create_ini()
"\n"
"; Invictus\n"
"[Invictus]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"fixwndprochook=true\n"
"renderer=opengl\n"
"\n"
"; Interstate 76\n"
"[i76]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"renderer=opengl\n"
"\n"
"; Jagged Alliance 2\n"
@ -688,11 +699,11 @@ static void cfg_create_ini()
"\n"
"; Majesty Gold HD\n"
"[MajestyHD]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Majesty Gold HD\n"
"[MajestyHD - Old]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Moorhuhn\n"
"[Moorhuhn]\n"
@ -707,12 +718,12 @@ static void cfg_create_ini()
"[olwin]\n"
"noactivateapp=true\n"
"maxgameticks=60\n"
"handlemouse=false\n"
"adjmouse=true\n"
"renderer=gdi\n"
"\n"
"; Pharaoh\n"
"[Pharaoh]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Pacific General\n"
"[PACGEN]\n"
@ -725,40 +736,42 @@ static void cfg_create_ini()
"\n"
"; Railroad Tycoon II\n"
"[RT2]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; ROAD RASH\n"
"[RoadRash]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Star Trek - Armada\n"
"[Armada]\n"
"armadahack=true\n"
"renderer=opengl\n"
"nonexclusive=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Star Wars: Galactic Battlegrounds\n"
"[battlegrounds]\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Star Wars: Galactic Battlegrounds: Clone Campaigns\n"
"[battlegrounds_x1]\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Stronghold Crusader HD\n"
"[Stronghold Crusader]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Stronghold Crusader Extreme HD\n"
"[Stronghold_Crusader_Extreme]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Stronghold HD\n"
"[Stronghold]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Steel Panthers: World At War\n"
"[MECH]\n"
@ -767,13 +780,15 @@ static void cfg_create_ini()
"; Shadow Watch\n"
"[sw]\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Shadow Flare\n"
"[ShadowFlare]\n"
"renderer=opengl\n"
"nonexclusive=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Three Kingdoms: Fate of the Dragon\n"
"[sanguo]\n"
@ -793,24 +808,26 @@ static void cfg_create_ini()
"renderer=opengl\n"
"nonexclusive=true\n"
"maxgameticks=60\n"
"handlemouse=false\n"
"adjmouse=true\n"
"fixchildwindows=false\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Tzar: The Burden of the Crown\n"
"; Note: Must set 'DIRECTXDEVICE=0' in 'Tzar.ini'\n"
"[Tzar]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Uprising\n"
"[uprising]\n"
"renderer=opengl\n"
"fixpitch=true\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Uprising 2\n"
"[Uprising 2]\n"
"renderer=opengl\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
"; Warlords 3\n"
"[Darklord]\n"
@ -822,7 +839,7 @@ static void cfg_create_ini()
"\n"
"; Worms Armageddon\n"
"[WA]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"width=0\n"
"height=0\n"
"resizable=false\n"
@ -838,7 +855,7 @@ static void cfg_create_ini()
"\n"
"; Zeus and Poseidon\n"
"[Zeus]\n"
"handlemouse=false\n"
"adjmouse=true\n"
"\n"
, fh);