Repository navigation
Refactor key-mapping system to separate keyboard and gamepad remapping #345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ikostan
merged 20 commits into
main
from
refactor-key-mapping-system-to-separate-keyboard-mouse-and-gamepad-remapping
Jan 23, 2026
Merged
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
79e8cfd
[FEATURE] Refactor key-mapping system to separate keyboard, mouse, an…
ikostan a15aae8
Update key_mapping.gd
ikostan 5afe5ed
issue (bug_risk): Mutually toggling the CheckButtons risks recursive …
ikostan 6cb3b42
Update menu input actions to use standard UI names
ikostan 016dd31
Refactor input remapping for device-specific controls
ikostan 6fd07e4
Refactor input handling and parameter naming
ikostan b18afea
Update input_remap_button.gd
ikostan 7a81286
Wire mouse button remapping to the new labels.
ikostan dfddc2a
Update the menu remap tooltips (copy/paste text).
ikostan a908344
Update key_mapping_menu.tscn
ikostan fa56e84
Handle legacy config formats to avoid load failures.
ikostan b46f899
Update key_mapping_menu.tscn
ikostan b113b40
Update input remap tests and settings handling
ikostan 3e75eeb
Add GUT test runner script and update input tests
ikostan 23d3946
Update run_gut_unit_tests.sh
ikostan 8fa9e92
Improve test cleanup for audio settings tests
ikostan 15c487a
Quote $GODOT to handle paths with spaces.
ikostan 7590393
Potential double-instantiation of audio_instance.
ikostan 2e8f0d9
issue (bug_risk): Casting the saved value to Array[String] can throw …
ikostan 34ed129
Guard remove_child to avoid “node is not a child” errors.
ikostan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #!/bin/bash | ||
|
|
||
| # This script runs GUT unit tests locally on Windows 10 using Godot 4.4/4.5. | ||
| # Assumptions: | ||
| # - Godot executable is in your PATH or specify the full path below. | ||
| # - Project is in the current directory. | ||
| # - Tests are located in res://test/ and use GUT syntax. | ||
| # - Run this script from the project root using Git Bash, WSL, or similar. | ||
| # - A .gutconfig.json file should exist in the project root (create one if missing; see Step 2). | ||
|
|
||
| # Path to Godot executable (update if not in PATH; on Windows, it's godot.exe) | ||
| GODOT="godot" # Or full path, e.g., "C:/Path/To/Godot/godot.exe" | ||
|
|
||
| # Project directory (current working directory) | ||
| PROJECT_DIR="$(pwd)" | ||
|
|
||
| # Install GUT if not already in addons/ | ||
| echo "Ensuring GUT is installed in addons/..." | ||
| if [ ! -d "$PROJECT_DIR/addons/gut" ]; then | ||
| mkdir -p "$PROJECT_DIR/addons" | ||
| wget https://github.com/bitwes/Gut/archive/refs/tags/v9.5.0.zip | ||
| unzip v9.5.0.zip -d "$PROJECT_DIR/addons" | ||
| mv "$PROJECT_DIR/addons/Gut-9.5.0/addons/gut" "$PROJECT_DIR/addons/gut" | ||
| rm -rf "$PROJECT_DIR/addons/Gut-9.5.0" v9.5.0.zip | ||
| fi | ||
|
|
||
| # Optional: Import resources (uncomment if needed; runs Godot headless to import) | ||
| echo "Importing Resources..." | ||
| $GODOT --headless --path "$PROJECT_DIR" --import --quit | ||
| if [ $? -ne 0 ]; then echo "Resource import failed."; exit 1; fi | ||
|
|
||
| # Run GUT tests | ||
| echo "Running GUT Unit Tests..." | ||
| $GODOT --headless --verbose --path "$PROJECT_DIR" -s addons/gut/gut_cmdln.gd -gconfig=res://.gutconfig.json -gdir=res://test -ginclude_subdirs=true -gexit | ||
| if [ $? -ne 0 ]; then echo "Unit tests failed."; exit 1; fi | ||
|
|
||
| # Optional: Handle reports (GUT can generate JUnit XML or other reports based on config) | ||
| echo "Tests completed! Check reports in gut-reports/ or configured directory if generated." | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.