Skip to content

Conversation

@rebtd7
Copy link
Owner

@rebtd7 rebtd7 commented Aug 16, 2021

Should hopefully fix the issue where some users would get incorrect controller mapping/spinning camera.

https://steamcommunity.com/app/292120/discussions/0/4312743731808007161/
https://steamcommunity.com/app/292120/discussions/0/613938693134914508/
https://steamcommunity.com/app/292120/discussions/0/3047230236583754130/
https://steamcommunity.com/app/292120/discussions/1/3047231300180681161/
https://steamcommunity.com/app/292120/discussions/0/141136086923284332/

Also allows hotswapping controllers without any slowdown, and fixes two issues with vibration:

  1. High/Low frequency vibration variables were swapped (probably the real cause of Vibration Strength #24, the motor used the most by the game is the strongest one and we were incorrectly using the weaker one)

  2. Vibration was not working after hotswapping

Vibration also now runs in the main thread (should be more accurate)

Should hopefully fix the issue where some users would get incorrect controller mapping/spinning camera.

Also allows hotswapping controllers, and fixes two issues with vibration:
1. High/Low frequency vibration variables were swapped (probably the real cause of #24, the motor used the most by the game is the strongest one and we were incorrectly using the weaker one)

2. Vibration was not working after hotswapping

3. Vibration now runs in the main thread (should be more accurate)
@rebtd7
Copy link
Owner Author

rebtd7 commented Aug 16, 2021

@Nucleoprotein Are you okay? Would you like to review this?

Comment on lines +182 to +186
// TODO Move this somewhere else...
// I've tried to move it to hkIDirect3D9::ApplyCreateDeviceFix but I got an incorrect ref count error message in the log (why?)
IDirect3DSwapChain9* swapChain = NULL;
HRESULT getSwapChainResult = pIDirect3DDevice9->GetSwapChain(0, &swapChain);
context.HookPresent(&swapChain);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any ideas about this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm back in home but i need to catch up with work. I will check this when i have some time.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, there's no rush. Glad to hear you are back home!

@illum1nerdi
Copy link

Is this PR still under review? This would fix a rather large issue with the game. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants