praydog / UEVR

Universal Unreal Engine VR Mod (4.8 - 5.4)
http://uevr.io
3.08k stars 158 forks source link

[FEATURE REQUEST] UEVR cross-controller binding #65

Open deterministicj opened 9 months ago

deterministicj commented 9 months ago

Add a way for UEVR control binding to differentiate between l trigger and r trigger to be able to re-map them to the other controller.

If you go into bindings and try to map trigger from one controller to another controller, like Right Trigger to the Left Trigger, it removes the Left trigger binding.

image

I believe this is due to it not being able to differentiate between left/right trigger in the mapping so it just assumes the trigger of the controller being mapped.

deterministicj commented 9 months ago

This doesn't seem to be a thing in SteamVR input binding either so maybe it's just not possible.

deterministicj commented 9 months ago

I'll leave it open in case you think it's possible. Would be really nice for 6dof left handed setups.

praydog commented 9 months ago

Yes this is possible I just forgot to do it

Hoshi82 commented 9 months ago

I'll leave it open in case you think it's possible. Would be really nice for 6dof left handed setups.

Yes that would be super nice. :)

praydog commented 9 months ago

So I just added an option that literally just swaps all inputs to the opposite controller. Will this work? e2e5d39801a482bc27defebc470dfb72fdb57b65

You can download it from here when it compiles: https://github.com/praydog/UEVR/actions

deterministicj commented 9 months ago

I tested it. This is great!

If we could have the option to not swap joysticks (as some of us are so used to normal controllers) that would be my only other ask.

Maybe just a Joystick Movement Orientation/Method: Left Move + Right Turn Right Move + Left Turn

That way people can swap for whatever reason. Thanks so much for adding this so quickly!

Hoshi82 commented 9 months ago

This worked for me too! Amazing :) But as deterministicj mentioned a seperate option for swapping sticks might be a good idea. I use swapped stick so this is already fine but some keep the old stick style.

deterministicj commented 9 months ago

While testing this new option I discovered that it is not getting saved to exported profiles.

VR_SwapControllerInputs does not change in the config.txt file no matter what the "Left-handed Controller Inputs" is set to in the GUI.

If I set it manually from the config.txt it works great, but exported profiles will not change (true or false).