Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
811 stars 66 forks source link

Implement user-definable keys #206

Closed donnierussellii closed 6 years ago

donnierussellii commented 6 years ago

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.

Interrupt commented 6 years ago

You are a beast, man. Or a beastman. Either way, you should drop by our Discord channel sometime! https://discord.gg/m45xPan