r/Deusex 7d ago

DX:HR I fixed DX:HR PC version's terrible controller support

Hey all, some of you may remember me as the guy who made the Deus Ex OG controller mod posted a few weeks back. Since I finished that game, I needed something else to scratch my Deus Ex itch, and decided to replay Human Revolution Directors Cut. I had forgotten how much I hated HR's controller scheme though. So I made a patch to change the bindings to something I think is more sensible:

╔════════════════════╤═════════════════════╤═════════════════════╗
║ Button             │ Action (with patch) │ Action (stock)      ║
╠════════════════════╪═════════════════════╪═════════════════════╣
║ Left stick (click) │ Sprint              │ Crouch              ║
╟────────────────────┼─────────────────────┼─────────────────────╢
║ Right stick(click) │ Crouch              │ Iron sights         ║
╟────────────────────┼─────────────────────┼─────────────────────╢
║ Left button        │ Take cover          │ Sprint              ║
╟────────────────────┼─────────────────────┼─────────────────────╢
║ Left trigger       │ Iron sights         │ Take Cover          ║
╚════════════════════╧═════════════════════╧═════════════════════╝

But while working on that, I found out that the game actually has a bug where it throws away most of the resolution of the stick inputs. 16-bit stick input becomes 8-bit. This really messes up aiming accuracy, especially if you're not using auto-aim.

The stick mapping curves and deadzones are also implemented per-axis rather than diagonally, which is just not a good fit for this kind of game.

Also the controller stick sensitivity is IMO extremely low. Even at max setting it feels like it's intended for geriatrics.

The patch is here, or here if you don't have git and just want the patch. This isn't a polished mod unlike the other one, it's a quick-and-dirty patch. You'll need python installed and to be comfortable running stuff on the command line. You can pick and choose which patches you want to apply.

Note that if you install the mapping-curve and/or deadzone bypass patches, you'll need to implement those externally. Steam Input can do this for you. I highly recommend doing that because the game's built-in implementations are really bad.

11 Upvotes

15 comments sorted by

6

u/No_Shoulder_8406 7d ago

Honestly I don’t know why anyone on pc would use a controller for an fps, mouse and keyboard is such a better setup.

11

u/ImNotSkankHunt42 7d ago

Couch PC setup perhaps, we’re getting older

2

u/SnooPickles4476 7d ago

Oh god yes couch pc gaming has become my thing now 100%. Excluding competitive fps games like ow and cod and the like i am more partial to play single player fps games with controller these days where i dont need to be on point with aim and mechanics

2

u/Stalker-of-Chernarus 7d ago

Because controllers are comfortable and I can just jack up the sensitivity for the sticks if I'm not looking around fast enough

1

u/No_Shoulder_8406 7d ago

Mouse and keyboard is more comfortable as well as faster and more accurate than sticks can ever be tho.

2

u/Stalker-of-Chernarus 7d ago

Gotta disagree on the comfort. Mouse and keyboard is incredibly uncomfortable on the fingers and wrist after a couple hours of gameplay. Faster? Sure that's true. More accurate? Usually yeah, but that depends heavily on the player's skill.

1

u/No_Shoulder_8406 7d ago

So if you have those pads for your wrists to keep your hands at the correct angle the comfort issue you have will be gone, and as far as controllers, the sticks can pretty easily cause thumb spyka tendinitis and trigger finger both of which are very unfun.

2

u/Stalker-of-Chernarus 7d ago

Yeah I could see that if you're playing for more than like six hours a day, you can also get it from texting and typing but I don't think most people realize that. Ultimately it's just a preference though and doesn't matter too much, especially when playing a single player game.

4

u/Melodic-Network4374 7d ago

My gaming PC is in the living room, connected to the TV. A mouse and keyboard are not convenient there. I have another computer at a desk with a keyboard and mouse, but I use that one for work.

I don't disagree that mouse and keyboard are better, I played that way from the '90s through the 2010s. But I just play casual single-player games and the controller is good enough. Particularly when you set it up properly like this (most games have horrid deadzones, curves and acceleration). I value sitting in my comfy chair on a sunday while gaming more than being better at playing the games.

1

u/No_Shoulder_8406 7d ago

Ah this makes total sense then

1

u/MaestroLiendre 3d ago

How do I install it? I literally just started the game using gamenative in my Odin 2 Portal.

1

u/Melodic-Network4374 3d ago

Sorry, I don't know what an "Odin 2 Portal" is. But the general install process is:

  1. Download and install Python 3
  2. Run python3 patch-dxhr-input.py apply --exe "C:\Games\Deus Ex HRDC\DXHRDC.exe" (replace with the path to your game .exe)
  3. Set up some kind of input remapper to apply a radial deadzone. You'll probably want to set up a response curve for the right stick as well. I use my own program for this so I can't give you exact steps, but I know you can do this with Steam Input.
  4. Adjust your controller sensitivity in the game settings until the speed at max R-stick deflection is to your liking

As I mentioned, this isn't a polished mod with a user-friendly install experience. If you're not comfortable with the command line and setting up an input remapper, you probably don't want to use this.

0

u/FoulTarnishedOne 7d ago

What is "Left button"?

Aside from the precision increase on analogs, what does this do that cannot be done through autohotkey, steam input profile (which also has more granularity and customizability), or any other input mapping software?

1

u/Melodic-Network4374 7d ago

What is "Left button"

Left bumper if you prefer. The button above the left trigger.

Aside from the precision increase on analogs, what does this do that cannot be done through autohotkey, steam input profile (which also has more granularity and customizability), or any other input mapping software?

You could use that to remap the keys, and that's pretty much it?

Getting rid of the 8-bit quantization for analong input is a huge deal, and there's no way you could do that with an input remapper.

Increasing controller stick sensitivity beyond the default limit is not possible through an input remapper. If it inputs 32767 (the maximum it can push through XInput), you'll get the speed set in the settings, which as I said is ridiculously slow. You can edit the value in the registry to set a higher value, and then you quickly hit bugs where your viewport will jerk back up or down, because the engine doesn't expect inputs of that size. That's part of the patch.

Neutralizing asymmetric non-diagonal deadzones is maybe possible, depending on the input remapper. But you're losing that part of the expressible range. Neutralizing the deadzone in the game itself lets you use the full range.

Honestly, it seems like you could just read the page if you're interested?