From 7e3ecab8ed27d3b496879c3e1cc5d984238c9d30 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 22 Nov 2020 17:41:44 +0100 Subject: [PATCH] vr:: two new actions --- vr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vr.cpp b/vr.cpp index 7990c5aa..a4c643f8 100644 --- a/vr.cpp +++ b/vr.cpp @@ -454,6 +454,12 @@ vector dads = { digital_action_data("/actions/game/in/MoveRight", [] { return (cmode && sm::NORMAL); }, [] (bool last, bool curr) { move_according_to(vr::TrackedControllerRole_RightHand, last, curr); }), + digital_action_data("/actions/game/in/Drop", [] { return (cmode && sm::NORMAL); }, [] (bool last, bool curr) { + if(curr && !last) dialog::queue_key('g'); + }), + digital_action_data("/actions/game/in/Skip turn", [] { return (cmode && sm::NORMAL); }, [] (bool last, bool curr) { + if(curr && !last) dialog::queue_key('s'); + }), digital_action_data("/actions/game/in/EnterMenu", [] { return (cmode && sm::NORMAL); }, [] (bool last, bool curr) { if(curr && !last) dialog::queue_key(PSEUDOKEY_MENU); }),