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

E3 2016 console war 2.0

PS4 vs Xbox One Sales: Microsoft Touches 20 Million a Year After Sony

Looks like the PS4 vs Xbox One battle is turning one-sided as far as sales victories are concerned....

by   /   3 weeks ago
Titanfall 2 is multiplatform

Titanfall 2: What We Want and Do Not Want

When Titanfall released in 2014 it was one of the hyped game releases that got enough attention...

by   /   3 weeks ago
videogame pirates punishments

Ten Interesting Ways Videogame Pirates Were Penalized by Developers

Here we are with another one of our interesting videos segment episodes. This time we will be...

by   /   4 weeks ago
Street Fighter V Frame Data

Entire Street Fighter V Frame Data, Hitboxes, BnB Combos in One Place

If you are a hardcore fan of fighting games you would know that they are much more than just button...

by   /   4 weeks ago
Billy De Vorss Overwatch Tracer Pose Copy

New Overwatch Tracer Pose is a Rip-Off of 1950 Art by Billy De Vorss

A couple of hours ago, Blizzard Entertainment revealed the new Overwatch Tracer pose after the old...

by   /   4 weeks ago
Load More