vr:: pointing in the rug

This commit is contained in:
Zeno Rogue committed 2020-12-31 19:11:14 +01:00
1 parent fc28c4c20a
commit 22fb9d1c30
3 files changed
+45 -11

No files matched your search

+6 -5
View File
@@ -608,14 +608,15 @@ EX bool need_mouseh = false;
EX void fix_mouseh() {
if(0) ;
#if CAP_RUG
else if(rug::rugged) {
if(need_mouseh || (vrhr::active() && which_pointer))
mouseh = rug::gethyper(mousex, mousey);
}
#endif
#if CAP_VR
else if(vrhr::active() && which_pointer && !vrhr::targeting_menu)
vrhr::compute_point(which_pointer, mouseh, mouseover, vrhr::pointer_distance);
#endif
else if(!need_mouseh) ;
#if CAP_RUG
else if(rug::rugged)
mouseh = rug::gethyper(mousex, mousey);
#endif
else {
if(dual::state) {