Remap Keys?
Moderator: OpenTTD Developers
- Redirect Left
- Tycoon
- Posts: 7249
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Remap Keys?
Is it possible to remap keys in this game? I find it super super irritating getting out of <any game> and then trying to use WASD to move about, and instead OpenTTD spits out lots of boxes for things. So just wondering if its possible to remap these hotkeys, as I always use the bar at the top and my mouse to choose what I want, insteaad of using the keys.
So yeah, is this a possibility?
So yeah, is this a possibility?
Re: Remap Keys?
Did you even look? hotkeys.cfg in the same place as your openttd.cfg.
Re: Remap Keys?
there is no GUI for that (yet), but in hotkeys.cfg you can change almost everything.
Re: Remap Keys?
Though, IIRC using arrow keys for viewport movement is not configurable in hotkeys.cfg. To change that you probably need to make source code changes and (re-)compile OpenTTD.
If I understand the original question, Redirect Left wants to change viewport movement from arrow keys to WASD-keys.
If I understand the original question, Redirect Left wants to change viewport movement from arrow keys to WASD-keys.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
- Redirect Left
- Tycoon
- Posts: 7249
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: Remap Keys?
Just movement in general to arrow OR WASD, like many games these days, but if I can only have one or the other, i'll not bother even opening the cfg file, i'll just get disappointedZuu wrote: If I understand the original question, Redirect Left wants to change viewport movement from arrow keys to WASD-keys.
Not there no, I assumed we wouldn't be using .cfg files to edit basic settings these daysPikkaBird wrote:Did you even look? hotkeys.cfg in the same place as your openttd.cfg.
edit: just removed the things that WASD was keyed towards, rest of that file is just tl;dr
Re: Remap Keys?
Hello everybody,
I reopen the discussion because I would like to find a solution to the change of the arrow keys. I play on a laptop and because of my muscle problems on the wrist it is very painful to use the arrow keys.
Thank you
I reopen the discussion because I would like to find a solution to the change of the arrow keys. I play on a laptop and because of my muscle problems on the wrist it is very painful to use the arrow keys.
Thank you
Re: Remap Keys?
Have you tried moving the map with the mouse? Probably the main reason why no one bothered to allow remapping arrow keys is that they suck anyway.
Re: Remap Keys?
You can use WASD fairly easily without recompiling the game.
FYI, there's a similar program for Linux called AutoKey.
- Download AutoHotkey v1.1
- Save all of the below code into a file called openttd.ahk and double click the file
- If you see a new green letter H taskbar icon, then it's working
- (optional)To have it auto-run on startup. Press Win+R, type "shell:startup", create a new shortcut to openttd.ahk in that folder that opened up
Code: Select all
; Optional. Reassign the following two keybinds in hotkeys.cfg as they will no longer be accessable.
; [order]
; skip = D
; [railtoolbar]
; signal = S
; This is a AutoHotkey v1.1 script
#If WinActive("ahk_exe openttd.exe")
w::Up
s::Down
a::Left
d::Right
return
FYI, there's a similar program for Linux called AutoKey.
Who is online
Users browsing this forum: Baidu [Spider] and 34 guests