naelstrof / VRPlayspaceMover

A little app that lets you adjust your play-space by gripping the universe!
MIT License
159 stars 35 forks source link

Better input options #23

Open ghost opened 5 years ago

ghost commented 5 years ago

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.

naelstrof commented 5 years ago

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!

ghost commented 5 years ago

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