1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

nilrider: CAP_VR guards

This commit is contained in:
Zeno Rogue 2022-05-09 09:40:35 +02:00
parent a300cb6ca0
commit d4957fd56b

View File

@ -345,8 +345,10 @@ void settings() {
dialog::add_action_push(nil_projection);
dialog::addItem("configure keys", 'k');
dialog::add_action_push(multi::get_key_configurer(1, move_names, "Nilrider keys"));
#if CAP_VR
vrhr::enable_button();
vrhr::reference_button();
#endif
dialog::addItem("RogueViz settings", 'r');
dialog::add_key_action('r', [] {
@ -529,9 +531,11 @@ void initialize_all() {
initialize();
poly_outline = 0xFF;
pushScreen(pick_game);
#if CAP_VR
vrhr::hsm = vrhr::eHeadset::reference;
vrhr::eyes = vrhr::eEyes::equidistant;
vrhr::absolute_unit_in_meters = 6;
#endif
}
auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", [] { planning_mode = true; }) + arg::add3("-viewsim", [] { view_replay = true; })