How to Customize Mafia 2 Controls Using AutoHotKey

By   /   6 years ago

Let’s consider an age old situation, that you are an old hardcore FPS fan from the days of Wolfenstein and Doom, using ASD and RMB for movement.
You still use the same configuration and are pretty disappointed with Mafia 2, not offering any option to map keys of your choice.
What can be done to have you playing with your native FPS controls ? AutoHotKey has the answer.

You can pretty much map any key for the game using application by following the guide below.

Step 1
Create a text file and name it ‘Mafia 2.ahk’.

Step 2

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#InstallMouseHook
#InstallKeybdHook

#IfWinActive ahk_class Mafia II
RButton::Up

Paste the above code in this text file and save the file.

Step 3
Install AutoHotKey application and double click this script file you just created.

RMB has been mapped to forward in Mafia II.

You can read the AutoHotKey Quick Start Tutorial to work out all the possibilities.

Join the Conversation

Hot Right Now

Xbox Scorpio vs PS Neo vs Nintendo NX

Xbox Scorpio vs PS Neo vs Nintendo NX – Specs Analysis and What to E…

During Microsoft's E3 media briefing, the company announced a slimmer version of Xbox One called...

by   /   1 day ago
Nintendo NX

Report: Nintendo NX is a Portable, Handheld Console with Detachable Co…

According to a recent report, the upcoming Nintendo NX will be a portable, handheld console with...

by   /   2 days ago
No Man's Sky PC Launch Date

No Man’s Sky Giveaway: Subscribe to Win 3 Copies of the Game

We are here with another free game giveaway and this time we are giving away easily one of the most...

by   /   5 days ago
PS4 beats Xbox One - PC

June 2016 NPD Shows PS4 Beats Xbox One Eighth Time in a Row

Although NPD still lacks data from digital game sales, it is still a very credible source of...

by   /   2 weeks ago
Pokemon Go update

Pokemon Go Dethrones “Porn” as Among Popular Google Searches!

Well, I didn't think I'd live to see the day when this would happen, but yes, it looks like...

by   /   2 weeks ago
Load More