This mod will hopefully start to be included in many popular packs, and allow users to have their own default controls. It stores all control configs in a file outside the modpack instance, meaning any pack you download that includes Global Controls will inherit your default controls on first launch. The default location of the file depends on your os, but is configurable:
Windows: %APPDATA%/GlobalControls/<mc-version>-controls.json
Mac OS: ~/Library/Application Support/GlobalControls/<mc-version>-controls.json
Linux: ~/.local/share/GlobalControls/<mc-version>-controls.json
There are several commands to manage controls:
Set current controls globally: /globalcontrols push <mod|all> [control|all]
Load controls after initial launch: /globalcontrols load <mod|all> [control|all]
Directly set a control, leave blank to unset: /globalcontrols set <mod> <control> [key]
If you have any questions or issues, please open an issue on the github or find me on discord (kirjorjos).