RFID Fuzzer: allow holding left right to change delay faster

hold TD button to add +10 or -10 to time delay
This commit is contained in:
MX 2022-11-11 17:05:33 +03:00
parent 8240b25fe0
commit 394507bc81
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5

View file

@ -515,7 +515,7 @@ void flipfrid_scene_run_attack_on_event(FlipFridEvent event, FlipFridState* cont
break; break;
case InputKeyRight: case InputKeyRight:
if(!context->is_attacking) { if(!context->is_attacking) {
if(context->time_between_cards < 60) { if(context->time_between_cards < 70) {
context->time_between_cards++; context->time_between_cards++;
} }
} }
@ -550,6 +550,26 @@ void flipfrid_scene_run_attack_on_event(FlipFridEvent event, FlipFridState* cont
break; 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;
}
}
} }
} }