Maintain defaults, but make those overridable via the options file.
This goes for games and the launcher! The Network is already sending back full key maps in the API response (though there isn't a UI for changing them yet), so now when the AHK files are written, it uses the configured keys both on the launcher side and on the game side to write those hotkeys.
:tada:
[x] read non-default key codes from winnitron_options.json
[x] translation from AHK strings to Unity KeyCodes
[x] update sample/default winnitron_options.json
[x] write game's keybindings (from API) to winnitron_metadata.json
[x] validate launcher's keybindings (no duplicates)
[x] in game ahk, send extra-player keypresses to /dev/null
[x] write those keys to the game AHK files
[x] clean up templates (i.e., remove now-duplicates)
[x] identify unity keys by string rather than int (oops)
Maintain defaults, but make those overridable via the options file.
This goes for games and the launcher! The Network is already sending back full key maps in the API response (though there isn't a UI for changing them yet), so now when the AHK files are written, it uses the configured keys both on the launcher side and on the game side to write those hotkeys.
:tada:
winnitron_options.json
KeyCode
swinnitron_options.json
winnitron_metadata.json