mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
nilrider: CAP_VR guards
This commit is contained in:
parent
a300cb6ca0
commit
d4957fd56b
@ -345,8 +345,10 @@ void settings() {
|
|||||||
dialog::add_action_push(nil_projection);
|
dialog::add_action_push(nil_projection);
|
||||||
dialog::addItem("configure keys", 'k');
|
dialog::addItem("configure keys", 'k');
|
||||||
dialog::add_action_push(multi::get_key_configurer(1, move_names, "Nilrider keys"));
|
dialog::add_action_push(multi::get_key_configurer(1, move_names, "Nilrider keys"));
|
||||||
|
#if CAP_VR
|
||||||
vrhr::enable_button();
|
vrhr::enable_button();
|
||||||
vrhr::reference_button();
|
vrhr::reference_button();
|
||||||
|
#endif
|
||||||
|
|
||||||
dialog::addItem("RogueViz settings", 'r');
|
dialog::addItem("RogueViz settings", 'r');
|
||||||
dialog::add_key_action('r', [] {
|
dialog::add_key_action('r', [] {
|
||||||
@ -529,9 +531,11 @@ void initialize_all() {
|
|||||||
initialize();
|
initialize();
|
||||||
poly_outline = 0xFF;
|
poly_outline = 0xFF;
|
||||||
pushScreen(pick_game);
|
pushScreen(pick_game);
|
||||||
|
#if CAP_VR
|
||||||
vrhr::hsm = vrhr::eHeadset::reference;
|
vrhr::hsm = vrhr::eHeadset::reference;
|
||||||
vrhr::eyes = vrhr::eEyes::equidistant;
|
vrhr::eyes = vrhr::eEyes::equidistant;
|
||||||
vrhr::absolute_unit_in_meters = 6;
|
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; })
|
auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", [] { planning_mode = true; }) + arg::add3("-viewsim", [] { view_replay = true; })
|
||||||
|
Loading…
Reference in New Issue
Block a user