VRPlayspaceMover icon indicating copy to clipboard operation
VRPlayspaceMover copied to clipboard

Better input options

Open ghost opened this issue 6 years ago • 2 comments

Created a new 'binding' system, that allows you to specify bind strings on the command lines instead of using numbers.

Example: --moveBinding "left: X, right: B" (press x or b to move)

Supports some logic too: --resetBinding "left: joystick & right: b" (press in the left joystick and b simultaneously to reset playspace)

It's pretty resilient to how the input strings are written. Will account for incorrect upper/lower case letters, varying whitespace and inconsistent separation.

Legacy support: Old -l and -r commands automatically get converted to the new system.

And added flag --physicsStartOff for those who want it.

ghost avatar Feb 16 '19 23:02 ghost

This is awesome! I'm going to have to look at it a bit later, and verify the documentation and the like.

Super cool though, thanks!

naelstrof avatar Feb 26 '19 21:02 naelstrof

Nice :) The only thing I am not sure on is the Vive button names. Some of them are probably poorly named since I only have a Rift to work with. The translations are defined in bindings.hpp in the bindings::controller_aliases map.

Cheers

ghost avatar Feb 26 '19 23:02 ghost