1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-26 02:31:22 +00:00

vr:: pointing in the rug

This commit is contained in:
Zeno Rogue
2020-12-31 14:43:49 +01:00
parent fc28c4c20a
commit 22fb9d1c30
3 changed files with 45 additions and 11 deletions

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) {