Skip to content

Commit 9dd9eb4

Browse files
committed
Keyboard command for overcharge
1 parent 35b9498 commit 9dd9eb4

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Source/ORTS.Common/Input/UserCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public enum UserCommand
133133
[GetString("Control Dynamic Brake Increase")] ControlDynamicBrakeIncrease,
134134
[GetString("Control Dynamic Brake Decrease")] ControlDynamicBrakeDecrease,
135135
[GetString("Control Bail Off")] ControlBailOff,
136+
[GetString("Control Brake Overcharge")] ControlBrakeOvercharge,
136137
[GetString("Control Initialize Brakes")] ControlInitializeBrakes,
137138
[GetString("Control Handbrake Full")] ControlHandbrakeFull,
138139
[GetString("Control Handbrake None")] ControlHandbrakeNone,

Source/ORTS.Settings/InputSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ static void InitializeCommands(UserCommandInput[] Commands)
344344
Commands[(int)UserCommand.ControlAlerter] = new UserCommandKeyInput(0x2C);
345345
Commands[(int)UserCommand.ControlBackwards] = new UserCommandKeyInput(0x1F);
346346
Commands[(int)UserCommand.ControlBailOff] = new UserCommandKeyInput(0x35);
347+
Commands[(int)UserCommand.ControlBrakeOvercharge] = new UserCommandKeyInput(0x35, KeyModifiers.Control);
347348
Commands[(int)UserCommand.ControlBatterySwitchClose] = new UserCommandKeyInput(0x52);
348349
Commands[(int)UserCommand.ControlBatterySwitchOpen] = new UserCommandKeyInput(0x52, KeyModifiers.Control);
349350
Commands[(int)UserCommand.ControlBell] = new UserCommandKeyInput(0x30);

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public override void InitializeUserInputCommands()
162162
UserInputCommands.Add(UserCommand.ControlSteamHeatIncrease, new Action[] { () => Locomotive.StopSteamHeatIncrease(), () => Locomotive.StartSteamHeatIncrease(null) });
163163
UserInputCommands.Add(UserCommand.ControlSteamHeatDecrease, new Action[] { () => Locomotive.StopSteamHeatDecrease(), () => Locomotive.StartSteamHeatDecrease(null) });
164164
UserInputCommands.Add(UserCommand.ControlBailOff, new Action[] { () => new BailOffCommand(Viewer.Log, false), () => new BailOffCommand(Viewer.Log, true) });
165+
UserInputCommands.Add(UserCommand.ControlBrakeOvercharge, new Action[] { () => new BrakeOverchargeCommand(Viewer.Log, false), () => new BrakeOverchargeCommand(Viewer.Log, true) });
165166
UserInputCommands.Add(UserCommand.ControlInitializeBrakes, new Action[] { Noop, () => new InitializeBrakesCommand(Viewer.Log) });
166167
UserInputCommands.Add(UserCommand.ControlHandbrakeNone, new Action[] { Noop, () => new HandbrakeCommand(Viewer.Log, false) });
167168
UserInputCommands.Add(UserCommand.ControlHandbrakeFull, new Action[] { Noop, () => new HandbrakeCommand(Viewer.Log, true) });

0 commit comments

Comments
 (0)