From 6843784f30535c1b9565d9a2c6f6299b83539129 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 25 Apr 2024 00:47:42 +0200 Subject: [PATCH] read keybindings.in in the correct (reversed) order --- src/data/keybindings.in | 42 ++++++++++++++++++++--------------------- src/hud.rs | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/data/keybindings.in b/src/data/keybindings.in index 39d8133..996ba6c 100644 --- a/src/data/keybindings.in +++ b/src/data/keybindings.in @@ -1,22 +1,22 @@ -X: Teleport to target [CHEAT] -C: Impossibly instant stopping [CHEAT] -Shift+V/B: Same as V/B, but a thousand times faster [CHEAT] -V/B: Impossible acceleration forward/backward [CHEAT] -G: Toggle god mode + cheats [CHEAT] -JKULIO: Mouseless camera rotation -F11: Toggle fullscreen -F7: Restart game -F4: Toggle music -F3: Toggle sound effects -F2: Toggle shadows -Y: Rotation stabilizer -F: 3rd person view -Right click: Zoom [AUGMENTED REALITY ONLY] -Left click: Target objects [AUGMENTED REALITY ONLY] -Tab: Toggle HUD + Augmented Reality -M: Map -Q: Exit vehicle -E: Interact: Talk to people, enter vehicles -R: Rotate (hold + move mouse) -AWSD/Shift/Ctrl: Movement Space: Slow down (or match velocity) +AWSD/Shift/Ctrl: Movement +R: Rotate (hold + move mouse) +E: Interact: Talk to people, enter vehicles +Q: Exit vehicle +M: Map +Tab: Toggle HUD + Augmented Reality +Left click: Target objects [AUGMENTED REALITY ONLY] +Right click: Zoom [AUGMENTED REALITY ONLY] +F: 3rd person view +Y: Rotation stabilizer +F2: Toggle shadows +F3: Toggle sound effects +F4: Toggle music +F7: Restart game +F11: Toggle fullscreen +JKULIO: Mouseless camera rotation +G: Toggle god mode + cheats [CHEAT] +V/B: Impossible acceleration forward/backward [CHEAT] +Shift+V/B: Same as V/B, but a thousand times faster [CHEAT] +C: Impossibly instant stopping [CHEAT] +X: Teleport to target [CHEAT] diff --git a/src/hud.rs b/src/hud.rs index ed03d00..12b600c 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -647,7 +647,7 @@ fn handle_input( q_camera: Query<&Transform, With>, ) { if keyboard_input.just_pressed(settings.key_help) { - for line in include_str!("data/keybindings.in").trim().split("\n") { + for line in include_str!("data/keybindings.in").trim().lines().rev() { log.add(line.to_string(), "".to_string(), LogLevel::Always); } }