1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 10:57:59 +00:00

vr:: controller ray now extend to the correct distance

This commit is contained in:
Zeno Rogue
2020-12-30 18:49:12 +01:00
parent 1b976d364b
commit cafc265cc6
4 changed files with 17 additions and 11 deletions

View File

@@ -609,9 +609,8 @@ EX bool need_mouseh = false;
EX void fix_mouseh() {
if(0) ;
#if CAP_VR
else if(vrhr::active() && which_pointer) {
vrhr::compute_point(which_pointer, mouseh, mouseover);
}
else if(vrhr::active() && which_pointer && !vrhr::in_menu())
vrhr::compute_point(which_pointer, mouseh, mouseover, vrhr::pointer_distance);
#endif
else if(!need_mouseh) ;
#if CAP_RUG