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:
11
control.cpp
11
control.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user