naelstrof / VRPlayspaceMover

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

Button masks should be unsigned long long values #13

Closed ghost closed 5 years ago

ghost commented 5 years ago

Steamvr converts button ids into masks using 1ull << id

This becomes a problem if you want to toggle physics by pressing in the left joystick on oculus for example, because the id is 32, which gets converted into 4294967296 (bit 33) as the mask by steamvr.

The mask options are being read as unsigned ints and therefore does not support a value this high. Changing them to be read as unsigned long long values works perfectly.