Patch: configurable hotkeys

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: Patch: configurable hotkeys

Post by Zuu »

IIRC there are a few keys that cannot be changed. Arrow keys may be among those.

In that case you either need to change the source code and recompile, or resort to using for example autohotkey (Windows) or xmodmap (Linux) to temporary rebind keys.


Edit: I took a look into the code, and indeed the arrow keys as directional keys is implemented in the src/video/*_v.cpp files. Search for "_dirkeys =" in the source code.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests