On run, if it doesn't already exist, a default "keybinds.txt" file will be created next to "prefs.txt" (see Prefs.h).
Keybinds file can be edited to bind keys to hotkey, fire or move actions. Key bindings take effect on next run.
movekeys.c was rewritten and is now much clearer.
If for some reason keybinds file cannot be read, default keys will still be properly set.
Also added/fixed:
Use SDL_TEXTINPUT events for printable char keys
Fix ALT key not working
Fix save hotkey
Quit hotkey was quitting without confirmation (!)
Fix randomly dropped modified keys (aka insidious evil)
On run, if it doesn't already exist, a default "keybinds.txt" file will be created next to "prefs.txt" (see Prefs.h).
Keybinds file can be edited to bind keys to hotkey, fire or move actions. Key bindings take effect on next run.
movekeys.c was rewritten and is now much clearer.
If for some reason keybinds file cannot be read, default keys will still be properly set.
Also added/fixed:
Use SDL_TEXTINPUT events for printable char keys Fix ALT key not working Fix save hotkey Quit hotkey was quitting without confirmation (!) Fix randomly dropped modified keys (aka insidious evil)
Commits done.