mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-03 22:44:30 +00:00
replace vrhr::state checking with nicer functions
This commit is contained in:
1 parent
483ea3369b
commit
e4e1a856e6
9 files changed
+57
-49
No files matched your search
+2
-2
@@ -601,7 +601,7 @@ EX bool need_mouseh = false;
|
||||
EX void fix_mouseh() {
|
||||
if(0) ;
|
||||
#if CAP_VR
|
||||
else if(vrhr::state && which_pointer) {
|
||||
else if(vrhr::active() && which_pointer) {
|
||||
vrhr::compute_point(which_pointer, mouseh, mouseover);
|
||||
}
|
||||
#endif
|
||||
@@ -792,7 +792,7 @@ EX void mainloopiter() {
|
||||
DEBB(DF_GRAPH, ("polling for events\n"));
|
||||
|
||||
#if CAP_VR
|
||||
if(vrhr::state) {
|
||||
if(vrhr::active()) {
|
||||
rug::using_rugview urv;
|
||||
dynamicval<bool> ds(didsomething, didsomething);
|
||||
using namespace vrhr;
|
||||
|
||||
Reference in new issue
Block a user