re4_tweaks
re4_tweaks copied to clipboard
De Lago Boat Mouse Fix
Describe the feature you'd like to see added
so in the Boat in any area you can access it the mouse feels really off like its using the Controller Axis so aiming with it can be really annoying
i would love to see a fix for this
the cursor also moves a tiny bit in the boat when using WASD after aiming with it although this doesnt really bother me as it's barely noticeable
Seems to be controlled by the code in plboat_pl0f_R2_SpearSet \ plboat_pl0f_R2_SpearSet2, which is a mess to say the least. I've looked at it in the past, but sadly couldn't make any progress.
Had a quick look into this, those funcs nipkownix found mostly seem responsible, looks like something is translating mouse movement to gamepad AnalogXX values, and then those SpearSet funcs use the AnalogXX values to move the reticule around.
There's code in there which only allows moving when analog is above 1, removing that code seems to help with the stutter when you move the mouse slowly, but seems it then keeps moving even if you stop moving mouse, whatever is translating mouse -> analog has some issue where it's leaving analog value set to 1 even with no movement, weird...
Maybe when movement stops whatever code that handles translating doesn't actually get ran for it to reset analog to 0, so it's left with the value from the last movement before it? Not sure.
That analog emulation stuff seems pretty iffy really, could be better to just hook the SpearSet code and make it use our own mouse code for the reticule instead.