From f5d4be5a8d3ea588641950a6fd149453994d0906 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 17 Nov 2024 14:18:48 +0100 Subject: [PATCH] vr:: quick-keys for intra --- intra.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/intra.cpp b/intra.cpp index cf308a18..095bb8cc 100644 --- a/intra.cpp +++ b/intra.cpp @@ -1205,6 +1205,14 @@ auto a = addHook(hooks_configfile, 100, [] { floor_dir = -1; on_floor_of = nullptr; ticks_last = ticks_end = ticks; + }) ++ addHook(vrhr::vr_quickmenu_extensions, 105, [] { + if(!intra::in) return; + dialog::addBoolItem("walking mode", 'w', on); + dialog::add_action([] { + switch_walking(); + println(hlog, "walking set to ", ONOFF(on)); + }); }); EX }