KrossX / Durazno

XInput wrapper that allows controller customization
MIT License
202 stars 21 forks source link

Game ignores the new mappings #31

Open mariomeissner opened 7 years ago

mariomeissner commented 7 years ago

I'm trying to use this tool to remap left and right joysticks of an xboxOne controller on Tomb Raider (Steam). I followed these steps:

I'm guessing something with the dll is wrong, or I'm missing some step. x360ce works when I make xinput9_1_0.dll. (I need to use this program though since x360ce does not let me press both triggers at the same time). This information might be useful to determine the cause of this issue.

Should I specify something in the "LoadDLL=" setting inside the .ini file? This is what durazno.log currently contains: [Durazno.zip]

= Durazno Log Opened = DllMain: DLL_PROCESS_ATTACH XInputLoadLibrary: C:\Windows\system32\xinput9_1_0.dll XInputGetProc: XInputGetState

I also attach my ini file here. (https://github.com/KrossX/Durazno/files/785716/Durazno.zip) Could somebody help me out here? :/

mariomeissner commented 7 years ago

An interesting behaviour I noticed is the following: Before loading the game, log shows XInputLoadLibrary: C:\Windows\system32\xinput1_3.dll Only after loading and closing, log shows XInputLoadLibrary: C:\Windows\system32\xinput9_1_0.dll If I open the GUI again, it resets to 1_3 again.

KrossX commented 7 years ago

It's fine, the GUI uses XInput1_3 as that's the default filename and the log gets overwritten. And the game log shows your renamed file is working and the function got called. In short, I have no clue why it ain't working.

You might have better luck with XInput Plus.

mariomeissner commented 7 years ago

Update! I tried XInput Plus, without luck. This one even gives a lovely soft beep sound when you load a configured game, so that you know its actually properly loading. The beep was there but the remapped controls werent.

HOWEVER! XInput Plus comes with a secondary program called XInput Plus Loader. Apparently, It injects the input thingies directly into the process (so it needs to be reinjected after each launch. They let you create a handy shortcut though, that autoinjects and launches the process). This one worked! I don't really understand how, but yeah...!

Thank you for the suggestion. <3 Also, your program, although it didnt work for me in particular, is really well made, so thank you for developing it. Mario.

KrossX commented 7 years ago

Thanks for the information. It seems I would have to learn some hooking magic at some point since new games are getting quite problematic.