1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 18:37:39 +00:00

uniform VR control

This commit is contained in:
Zeno Rogue
2020-12-30 18:34:13 +01:00
parent db46f247c5
commit 1b976d364b
5 changed files with 103 additions and 120 deletions

View File

@@ -178,7 +178,15 @@ EX void calcMousedest() {
}
EX void mousemovement() {
if(GDIM == 3) {
#if CAP_VR
if(WDIM == 3 && vrhr::active() && which_pointer) {
movevrdir(vrhr::vr_direction);
return;
}
#endif
if(GDIM == 3 && !which_pointer) {
if(WDIM == 2) {
if(View[2][2] < -0.75)
movepcto(MD_DROP, 1);