--- a/src/GameSrc/mouselook.c +++ b/src/GameSrc/mouselook.c @@ -121,3 +121,10 @@ get_mouselook_vel(&mvelx, &mvely); } } + +#ifdef __ANDROID__ +// Whether the player is currently in cyberspace; read by the Android +// controller input code (android/app/src/main/cpp/xr_input.c) to switch +// between the normal and cyberspace action sets. +int qs_in_cyberspace(void) { return global_fullmap != NULL && global_fullmap->cyber; } +#endif