From 780fa65349fd472a51b28cced3d1558e8f9ce886 Mon Sep 17 00:00:00 2001 From: yuni Date: Mon, 18 Nov 2024 05:24:41 +0100 Subject: [PATCH] re-implement J/K/U/L/I/O key bindings for mouseless gaming --- README.md | 1 + src/camera.rs | 22 ++++++++++++++++++++++ src/data/keybindings.in | 1 + 3 files changed, 24 insertions(+) diff --git a/README.md b/README.md index cd42c58..0cf892d 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ Press **ESC** to view these any time from the in-game menu. - **T**: Cruise control - **R**: Rotate (hold + move mouse) - **AWSD/Shift/Ctrl**: Move +- **J/K/U/L/I/O**: Rotate - **F11**: Fullscreen - **Tab**: Toggle Augmented Reality - **Left click**: Target objects (in AR only) diff --git a/src/camera.rs b/src/camera.rs index 8b90167..6c65a05 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -444,6 +444,7 @@ fn manage_player_actor( pub fn apply_input_to_player( mut commands: Commands, + time: Res