Mega Man X Legacy Collection

Mega Man X Legacy Collection

Not enough ratings
MMXLC 1 & MMXLC 2 - Keyboard Rebinding
By Miagui
Guide to help you change your keybinds from the default arrow keys to your liking on X Legacy Collection 1, X Legacy Collection 2 and possibly Zero Legacy Collection.
   
Award
Favorite
Favorited
Unfavorite
Introduction
So you're one of these weirdos that like to play on a keyboard, or don't have enough money to buy a controller to play this game? Well then, this guide is for you.

Capcom being Capcom, have decided to not let PC users configure their keys, and even worse is that they thought us keyboard players uses arrow keys for movement and 'ZXC' for attacks, lol.

With this guide, you should be able to rebind keys for yourself with AutoHotkey, as well as find pre-defined rebinding scripts for common keyboard layouts.
Creating the Script
We will remap the keys using AutoHotkey, you can download it here[www.autohotkey.com]
First you should create a file that you can edit in any text editor, or even Notepad.
The process is simple, you can follow my example of how i've remapped keys to my liking.

For the entirety of this guide, underscore bold is for scripts, as there's no way to create a formatting block for it.
Here is the script i use for WASD and Numpad layout.


#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Event ; From my experience "Event" is better than "Input" for overriding existing keys.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

; Optimizations to avoid input delay and for more accuracy.
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#MaxThreadsPerHotkey 255
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetKeyDelay, -1, -1

#If WinActive("ahk_exe RXC1.exe") || WinActive("ahk_exe RXC2.exe")

; Directionals
w::Up
s::Down
a::Left
d::Right

; Actions
Numpad5::z
Numpad4::x
Numpad6::a
NumpadEnter::Space
Enter::Space

; Weapons Selection
Numpad9::c
Numpad7::d

; Special Attack
Numpad8::s
; Using NumpadAdd for special attacks seems better than Numpad8.
NumpadAdd::s

; Giga Attack
q::v

; SDC
Numpad2::
SendInput, {a down}
Sleep 1
SendInput, {x down}
SendInput, {a up}
Sleep 25
SendInput, {x up}


You can just copy-paste it into your newly created file and change its extension to .ahk

As you can see, it's a bit large, but it is commented enough that you can understand what to do if you want to edit. Rebinding keys is easy as just changing the first key from a statement for the one you want.

Example, if you want to change keys to IJKL layout, you can do it like this:


; Actions
k::z
j::x
l::a
Enter::Space


There's also a SDC (Saber Dash Cancel) bind in the end in case you'd need it, but it needs more improvements.
Using the Script
Now that you've created your script file and pasted the script, as long as your file is with .ahk extension, you can just click on it and it should execute, considering that you have AutoHotkey installed.

The script will only work if your focused window is the games itself (RXC1.exe and RXC2.exe), so it won't bother you during common tasks.

It should be reminded that everytime you boot your PC, you will need to run the script before you play.
1 Comments
Non-Employee 2 Sep, 2024 @ 2:41pm 
I'm not going to use this method (Because I have my own that works) but wanted to show appreciation for someone else that uses the WASD/Keypad layout for these games :mmx_sigma: The binds you use could give me some ideas for my own, as well!