Skip to content

Commit

Permalink
Lowered max debounce amount to 25ms (YARC-Official#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDiddyThaGOAT authored Jun 3, 2023
1 parent d4a425b commit 6fcb504
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/Script/Input/ControlBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public InputControl<float> Control {
public long DebounceThreshold {
get => _debounceThreshold;
set {
// Limit debounce amount to 0-100 ms
// 100 ms is *very* generous, any larger and input registration will be very bad
// Limit debounce amount to 0-25 ms
// Any larger and input registration will be very bad since the max will limit to 40 inputs per second
// If someone needs a larger amount their controller is just busted lol
if (value > 100) {
value = 100;
if (value > 25) {
value = 25;
} else if (value < 0) {
value = 0;
}
Expand Down

0 comments on commit 6fcb504

Please sign in to comment.