From 38653fdc0061cf50e75ed1448061c69968ca432e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 17 Nov 2024 14:19:34 +0100 Subject: [PATCH] rogueviz:: nilrider:: now uses the new VR quickkey system --- rogueviz/nilrider/nilrider.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rogueviz/nilrider/nilrider.cpp b/rogueviz/nilrider/nilrider.cpp index 958109a2..1e3e10d1 100644 --- a/rogueviz/nilrider/nilrider.cpp +++ b/rogueviz/nilrider/nilrider.cpp @@ -705,6 +705,18 @@ void default_settings() { #endif } +void vrqm_ext() { + dialog::addItem("restart Nil Rider", 'r'); + dialog::add_action([] { + println(hlog, "nilrider restart"); + nilrider::restart(); + }); + dialog::addBoolItem("stepped Nil Rider", nilrider::stepped_display, 's'); + dialog::add_action([] { + println(hlog, "nilrider stepped"); + nilrider::stepped_display = !nilrider::stepped_display; + }); + } void initialize() { load(); @@ -746,6 +758,7 @@ void initialize() { rv_hook(hooks_resetGL, 100, cleanup_textures); rv_hook(hooks_music, 100, nilrider_music); rv_hook(hooks_sync_music, 100, sync_music); + rv_hook(vrhr::vr_quickmenu_extensions, 101, vrqm_ext); on = true; on_cleanup_or_next([] { on = false; }); pushScreen(run);