From 394507bc81e2fcdf8bde3c39ca3b0af4e64abd31 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Fri, 11 Nov 2022 17:05:33 +0300 Subject: [PATCH] RFID Fuzzer: allow holding left right to change delay faster hold TD button to add +10 or -10 to time delay --- .../scene/flipfrid_scene_run_attack.c | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c b/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c index c2f1a77ca..983a6e7eb 100644 --- a/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c +++ b/applications/plugins/flipfrid/scene/flipfrid_scene_run_attack.c @@ -515,7 +515,7 @@ void flipfrid_scene_run_attack_on_event(FlipFridEvent event, FlipFridState* cont break; case InputKeyRight: if(!context->is_attacking) { - if(context->time_between_cards < 60) { + if(context->time_between_cards < 70) { context->time_between_cards++; } } @@ -550,6 +550,26 @@ void flipfrid_scene_run_attack_on_event(FlipFridEvent event, FlipFridState* cont break; } } + if(event.input_type == InputTypeLong) { + switch(event.key) { + case InputKeyLeft: + if(!context->is_attacking) { + if(context->time_between_cards > 0) { + context->time_between_cards -= 10; + } + } + break; + case InputKeyRight: + if(!context->is_attacking) { + if(context->time_between_cards < 70) { + context->time_between_cards += 10; + } + } + break; + default: + break; + } + } } }