OpenTTD

Tasklist

FS#6375 - Allow SPACE as a hotkey

Attached to Project: OpenTTD
Opened by Ram_Z (Ram_Z) - Wednesday, 30 September 2015, 22:39 GMT
Type Patch
Category Interface
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I would like to remap the spacebar to something useful but this is currently not possible.

Attached is a rough patch that allows this.

Testing is minimal, so far I only tried remapping the [news]:quit hotkey to SPACE (RETURN) and map [maintoolbar]:pause to SPACE. This works, I can close the news windown with RETURN and pause the game with SPACE. However the game currently crashes when saving the `hotkeys.cfg` back to disk with "Assertion failed [..]/src/hotkeys.cpp: keycode < 128".
This task depends upon

Comment by Ram_Z (Ram_Z) - Sunday, 04 October 2015, 16:48 GMT
Here is an updated patch.

Loading...