ScpToolkit retrieving rumble values
-
Originally posted by nefarius
Sounds like a job for ViGEm or an API-hook. ScpToolkit would be an absolute overkill for this.
-
Originally posted by Deathwalker9959
Well i had also found this that i may could have used to retrieve the rumble values but i'm not sure can you confirm on this?
DWORD XInputSetState( _In_ DWORD dwUserIndex, _Inout_ XINPUT_VIBRATION *pVibration ); DWORD XInputGetState( _In_ DWORD dwUserIndex, _Out_ XINPUT_STATE *pState );
-
Originally posted by nefarius
This function is used by the process to inform the XInput sub system to send the rumble requests to the physical pad. So in short: yes. If you are familiar with API hooking you can like inject a custom DLL in the target game/process, hook this function, copy values from
\*pVibration
parameter and use them for your purposes. Then you wouldn't even need additional drivers. -
Originally posted by Deathwalker9959
So in short term you're saying i can make a dll which i would inject to my target process that contained
this functionDWORD XInputSetState( _In_ DWORD dwUserIndex, _Inout_ XINPUT_VIBRATION *pVibration );
and then have them sent off to serial and etc
-
-
-
Originally posted by nefarius
No problem.
By the way I also have my own utility for injecting DLLs and a project which heavily utilizes API hooking on Windows.
-
Originally posted by evilC
Ooh, I had not noticed Indicum Supra before. I previously looked at DX9-Overlay-API, but it is DX9 only.
Is Indicum Supra for any version of DX? -
Originally posted by nefarius
@evilC yes, at least DX9, 10 and 11 is currently implemented. It's a tad out-of-date but I'm currently updating it.
-
Originally posted by evilC
Awesome!
Will give it a go at some point and see if I can get it to work from AHK.