Skip to content

Commit 00d4756

Browse files
committed
revert(?) console size changing input back to ctrl
somehow still works with ralt and rctrl...
1 parent cc59e2b commit 00d4756

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8181

8282
- The `LimbPath` property `NormalTravelSpeed` has been renamed to just `TravelSpeed`.
8383

84-
- All ctrl+* special inputs functionality (i.e restarting activity, world dumps, showing performance stats) are now mapped to right alt, to not interfere with default crouching inputs.
84+
- Almost all ctrl+* special inputs functionality (i.e restarting activity, world dumps, showing performance stats) are now mapped to right alt, to not interfere with default crouching inputs. The only exception is ctrl+arrow keys for changing console size.
8585

8686
</details>
8787

Source/Managers/ConsoleMan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,17 +288,17 @@ void ConsoleMan::Update() {
288288

289289
m_GUIControlManager->Update();
290290

291-
if (g_UInputMan.FlagRAltState() && g_UInputMan.KeyPressed(SDLK_DOWN)) {
291+
if (g_UInputMan.FlagCtrlState() && g_UInputMan.KeyPressed(SDLK_DOWN)) {
292292
SetConsoleScreenSize(m_ConsoleScreenRatio + 0.05F);
293-
} else if (g_UInputMan.FlagRAltState() && g_UInputMan.KeyPressed(SDLK_UP)) {
293+
} else if (g_UInputMan.FlagCtrlState() && g_UInputMan.KeyPressed(SDLK_UP)) {
294294
SetConsoleScreenSize(m_ConsoleScreenRatio - 0.05F);
295295
}
296296

297297
if (!m_ReadOnly) {
298298
m_InputTextBox->SetEnabled(true);
299299
m_InputTextBox->SetFocus();
300300

301-
if (!m_InputLog.empty() && !g_UInputMan.FlagRAltState()) {
301+
if (!m_InputLog.empty() && !g_UInputMan.FlagCtrlState()) {
302302
if (g_UInputMan.KeyPressed(SDLK_UP)) {
303303
LoadLoggedInput(false);
304304
} else if (g_UInputMan.KeyPressed(SDLK_DOWN)) {

0 commit comments

Comments
 (0)