LunarLux
评价数不足
How to freely remap keyboard controls
由 PLMMJ 制作
Not everyone wants to use a controller, but for some reason the devs left the keyboard controls un-remappable. Now you can change that.
   
奖励
收藏
已收藏
取消收藏
Intro
Credit where credit is due
I got this idea from another Steam guide by The_NothingForEverything, specifically this one for remapping the controls of the Mega Man X Legacy Collections. What I've done here is generalize it to any game and list how to do it for LunarLux specifically.

The guide itself
This game has rather lackluster keyboard support, making it impossible to rebind your keys. There is no in-game way to change this to my knowledge, only swap between controllers. So, if you want to remap controls, you'll need to use an external software. This guide uses AutoHotkey[www.autohotkey.com] since it's free and safe.

Do note that this will make writing notes within the game more awkward, write them using the Steam window instead of the in-game overlay to avoid this.
Script
First, create a blank script. I put mine in Documents/AutoHotkey, dunno if it works with other locations but it probably will.

Next you need to create a key list. Below shows the one for LunarLux, remapped specifically for my preferred control scheme.

#Requires AutoHotkey v2.0 SendMode "Event" ;Prevent maxhotkeys warning with a high value A_MaxHotkeysPerInterval := 2000 ; other helpful optimizations #MaxThreadsPerHotkey 255 KeyHistory 0 ListLines 0 ProcessSetPriority("A",) SetKeyDelay -1, -1 ;Bind keys for LunarLux #HotIf WinActive("ahk_exe LunarLux.exe") ;Movement w::up s::down a::left d::right ; Select z::z ; Menu/Back x::x ; Talk to Tetra c::c ; Lux Combo v::v ; Rotate ship q::q e::e #HotIf Rehook() { InstallKeybdHook return }

The original keys are on the right, and the desired keys are on the left. The script above just changes arrow keys to corresponding WASD keys, so pressing W moves me up. However, the original controls still work so pressing the up arrow key still moves me up. For example, if you want to use your left hand for movement and right for attacks, you would change the bind keys section to look something like this:

;Movement w::up s::down a::left d::right ; Select o::z ; Menu/Back p::x ; Talk to Tetra i::c ; Lux Combo l::v ; Rotate ship q::q e::e

If you don't know what a key would be represented as within AHK files, consult this list[www.autohotkey.com].

For generalizing to all games, pull up Task Manager to find the name of the game's process (in this case "LunarLux.exe") and on the line
#HotIf WinActive("ahk_exe LunarLux.exe")
replace LunarLux.exe with the game's process name. Then replace the keys listed in the section below it with that game's controls, with the original on the right and desired on the left.