- added a set of left handed key bindings because neither of the offerings is really good for that.

This commit is contained in:
Christoph Oelckers 2019-10-26 09:22:49 +02:00
parent 47acdae8e6
commit 5abc034540
9 changed files with 481 additions and 0 deletions

View file

@ -42,6 +42,7 @@
#include "keyboard.h" #include "keyboard.h"
#include "control.h" #include "control.h"
#include "_control.h" #include "_control.h"
#include "gamecontrol.h"
/* Notes /* Notes
@ -51,11 +52,14 @@
*/ */
CVAR(Bool, cl_defaultconfiguration, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
FGameConfigFile* GameConfig; FGameConfigFile* GameConfig;
static FString GameName; static FString GameName;
void G_LoadConfig(const char *game) void G_LoadConfig(const char *game)
{ {
CONFIG_SetDefaultKeys(cl_defaultconfiguration? "demolition/origbinds.txt" : "demolition/defbinds.txt")
GameConfig = new FGameConfigFile(); GameConfig = new FGameConfigFile();
GameConfig->DoGlobalSetup(); GameConfig->DoGlobalSetup();
GameConfig->DoGameSetup(game); GameConfig->DoGameSetup(game);

View file

@ -0,0 +1,55 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Turn_Around", "BakSpc"
"Strafe", "LAlt", "RAlt"
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Jump", "A", "Kpad-"
"Crouch", "Z"
"Run", "LShift", "RShift"
"AutoRun", "CapLck"
"Open", "Space"
"Weapon_Fire", "LCtrl", "RCtrl"
"Weapon_Special_Fire", "X"
"Aim_Up", "Home"
"Aim_Down", "End"
"Aim_Center"
"Look_Up", "PgUp"
"Look_Down", "PgDn"
"Tilt_Left", "Insert", "Kpad0"
"Tilt_Right", "Delete", "Kpad."
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory_Use", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"Map_Toggle", "Tab"
"Map_Follow_Mode", "F"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Send_Message", "T"
"See_Coop_View", "K"
"See_Chase_View", "F7"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Holster_Weapon", "ScrLck"
"Show_Opponents_Weapon", "W"
"BeastVision", "B"
"CrystalBall", "C"
"JumpBoots", "J"
"MedKit", "M"
"ProximityBombs", "P"
"RemoteBombs", "R"
"Show_Console", "`"

View file

@ -0,0 +1,63 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Strafe", "LAlt", "RAlt"
"Fire", "LCtrl", "RCtrl"
"Open", "Space"
"Run", "LShift", "RShift"
"Alt_Fire"
"Jump", "A", "KPad-"
"Crouch", "Z"
"Look_Up", "PgUp", "Kpad9"
"Look_Down", "PgDn", "Kpad3"
"Look_Left", "Insert", "Kpad0"
"Look_Right", "Delete", "Kpad."
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Aim_Up", "Home"
"Aim_Down", "End"
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"Holo_Duke", "H"
"Jetpack", "J"
"NightVision", "N"
"MedKit", "M"
"TurnAround", "BakSpc"
"SendMessage", "T"
"Map", "Tab"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Center_View"
"Holster_Weapon", "ScrLck"
"Show_Opponents_Weapon", "W"
"Map_Follow_Mode", "F"
"See_Coop_View", "K"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Steroids", "R"
"Quick_Kick", "Q"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Show_Console", "`"
"Show_DukeMatch_Scores"
"Dpad_Select"
"Dpad_Aiming"
"AutoRun", "CapLck"
"Last_Used_Weapon"
"Quick_Save", "F6"
"Quick_Load", "F9"
"Alt_Weapon"
"Third_Person_View", "F7"
"Toggle_Crouch"

View file

@ -0,0 +1,57 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Strafe", "LAlt", "RAlt"
"Fire", "LCtrl", "RCtrl"
"Open", "Space"
"Run", "LShift", "RShift"
"Alt_Fire"
"Jump", "A", "KPad-"
"Crouch", "Z"
"Look_Up", "PgUp", "Kpad9"
"Look_Down", "PgDn", "Kpad3"
"Look_Left", "Insert", "Kpad0"
"Look_Right", "Delete", "Kpad."
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Aim_Up", "Home"
"Aim_Down", "End"
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"TurnAround", "BakSpc"
"SendMessage", "T"
"Map", "Tab"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Center_View"
"Holster_Weapon", "ScrLck"
"Show_Opponents_Weapon", "W"
"Map_Follow_Mode", "F"
"See_Coop_View", "K"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Show_Console", "`"
"Show_DukeMatch_Scores"
"Dpad_Select"
"Dpad_Aiming"
"AutoRun", "CapLck"
"Last_Used_Weapon"
"Quick_Save", "F6"
"Quick_Load", "F9"
"Alt_Weapon"
"Third_Person_View", "F7"
"Toggle_Crouch"

View file

@ -0,0 +1,63 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Strafe", "LAlt", "RAlt"
"Fire", "LCtrl", "RCtrl"
"Open", "Space"
"Run", "LShift", "RShift"
"Alt_Fire"
"Jump", "A", "KPad-"
"Crouch", "Z"
"Look_Up", "PgUp", "Kpad9"
"Look_Down", "PgDn", "Kpad3"
"Look_Left", "Insert", "Kpad0"
"Look_Right", "Delete", "Kpad."
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Aim_Up", "Home"
"Aim_Down", "End"
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"Holo_Duke", "H"
"Jetpack", "J"
"NightVision", "N"
"MedKit", "M"
"TurnAround", "BakSpc"
"SendMessage", "T"
"Map", "Tab"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Center_View"
"Holster_Weapon", "ScrLck"
"Show_Opponents_Weapon", "W"
"Map_Follow_Mode", "F"
"See_Coop_View", "K"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Steroids", "R"
"Quick_Kick", "Q"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Show_Console", "`"
"Show_DukeMatch_Scores"
"Dpad_Select"
"Dpad_Aiming"
"AutoRun", "CapLck"
"Last_Used_Weapon"
"Quick_Save", "F6"
"Quick_Load", "F9"
"Alt_Weapon"
"Third_Person_View", "F7"
"Toggle_Crouch"

View file

@ -0,0 +1,63 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Strafe", "LAlt", "RAlt"
"Fire", "LCtrl", "RCtrl"
"Open", "Space"
"Run", "LShift", "RShift"
"AutoRun", "CapLck"
"Jump", "A", "KPad-"
"Crouch", "Z"
"Look_Up", "PgUp"
"Look_Down", "PgDn"
"Look_Left", "Insert", "Kpad0"
"Look_Right", "Delete", "Kpad."
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Aim_Up", "Home"
"Aim_Down", "End"
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"Holo_Duke", "B"
"Jetpack", "C"
"NightVision", "Y"
"MedKit", "W"
"TurnAround", "BakSpc"
"SendMessage", "T"
"Map", "Tab"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Center_View"
"Holster_Weapon", "ScrLck"
"Show_Opponents_Weapon", "E"
"Map_Follow_Mode", "F"
"See_Coop_View", "K"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Steroids", "M"
"Quick_Kick", "`"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Show_Console", "`"
"Show_DukeMatch_Scores"
"Dpad_Select"
"Dpad_Aiming"
"Alternate_Weapon"
"Last_Used_Weapon"
"Quick_Save", "F6"
"Quick_Load", "F9"
"Third_Person_View", "F7"
"Toggle_Crouch"

View file

@ -0,0 +1,63 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Strafe", "LAlt", "RAlt"
"Fire", "LCtrl", "RCtrl"
"Open", "Space"
"Run", "LShift", "RShift"
"AutoRun", "CapLck"
"Jump", "A", "KPad-"
"Crouch", "Z"
"Look_Up", "PgUp", "Kpad9"
"Look_Down", "PgDn", "Kpad3"
"Look_Left", "Insert", "Kpad0"
"Look_Right", "Delete", "Kpad."
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Aim_Up", "Home"
"Aim_Down", "End"
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"Holo_Duke", "B"
"Jetpack", "C"
"NightVision", "Y"
"MedKit", "W"
"TurnAround", "BakSpc"
"SendMessage", "T"
"Map", "Tab"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Center_View"
"Holster_Weapon", "ScrLck"
"Show_Opponents_Weapon", "E"
"Map_Follow_Mode", "F"
"See_Coop_View", "K"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Steroids", "M"
"Quick_Kick", "`"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Show_Console", "V"
"Show_DukeMatch_Scores"
"Dpad_Select"
"Dpad_Aiming"
"Alternate_Weapon"
"Last_Used_Weapon"
"Quick_Save", "F6"
"Quick_Load", "F9"
"Third_Person_View", "F7"
"Toggle_Crouch"

View file

@ -0,0 +1,50 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Strafe", "LAlt", "RAlt"
"Fire", "LCtrl", "RCtrl"
"Open", "Space"
"Run", "LShift", "RShift"
"AutoRun", "CapLck"
"Jump", "A", "KPad-"
"Crouch", "Z"
"Look_Up", "PgUp"
"Look_Down", "PgDn"
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Aim_Up", "Home"
"Aim_Down", "End"
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"MedKit", "M"
"Smoke_Bomb", "S"
"Nightvision", "N"
"Gas_Bomb", "G"
"Flash_Bomb", "F"
"Caltrops", "C"
"TurnAround", "BakSpc"
"SendMessage", "T"
"Map", "Tab"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Center_View"
"Holster_Weapon", "ScrLck"
"Map_Follow_Mode", "F"
"See_Coop_View", "K"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Show_Console", "`"

View file

@ -0,0 +1,63 @@
"Move_Forward", "Up", "Kpad8"
"Move_Backward", "Down", "Kpad2"
"Turn_Left", "Left", "Kpad4"
"Turn_Right", "Right", "KPad6"
"Strafe", "LAlt", "RAlt"
"Fire", "LCtrl", "RCtrl"
"Open", "Space"
"Run", "LShift", "RShift"
"Alt_Fire"
"Jump", "A", "KPad-"
"Crouch", "Z"
"Look_Up", "PgUp", "Kpad9"
"Look_Down", "PgDn", "Kpad3"
"Look_Left", "Insert", "Kpad0"
"Look_Right", "Delete", "Kpad."
"Strafe_Left", ",", "KPad7"
"Strafe_Right", ".", "KPad9"
"Aim_Up", "Home"
"Aim_Down", "End"
"Weapon_1", "1"
"Weapon_2", "2"
"Weapon_3", "3"
"Weapon_4", "4"
"Weapon_5", "5"
"Weapon_6", "6"
"Weapon_7", "7"
"Weapon_8", "8"
"Weapon_9", "9"
"Weapon_10", "0"
"Inventory", "Enter", "KpdEnt"
"Inventory_Left", "["
"Inventory_Right", "]"
"Holo_Duke", "H"
"Jetpack", "J"
"NightVision", "N"
"MedKit", "M"
"TurnAround", "BakSpc"
"SendMessage", "T"
"Map", "Tab"
"Shrink_Screen", "-"
"Enlarge_Screen", "="
"Center_View"
"Holster_Weapon", "ScrLck"
"Show_Opponents_Weapon", "W"
"Map_Follow_Mode", "F"
"See_Coop_View", "K"
"Mouse_Aiming", "U"
"Toggle_Crosshair", "I"
"Steroids", "R"
"Quick_Kick", "Q"
"Next_Weapon", "'"
"Previous_Weapon", ";"
"Show_Console", "`"
"Show_DukeMatch_Scores"
"Dpad_Select"
"Dpad_Aiming"
"AutoRun", "CapLck"
"Last_Used_Weapon"
"Quick_Save", "F6"
"Quick_Load", "F9"
"Alt_Weapon"
"Third_Person_View", "F7"
"Toggle_Crouch"