mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-12-06 03:38:02 -05:00
19 lines
413 B
C#
19 lines
413 B
C#
namespace QuiverLauncher.Services;
|
|
|
|
public static class GamepadNavigationRepeat
|
|
{
|
|
public static bool ShouldAllowNavigationMove(
|
|
int movesInHold,
|
|
double elapsedMs,
|
|
int initialDelay,
|
|
int repeatDelay)
|
|
{
|
|
return movesInHold switch
|
|
{
|
|
0 => true,
|
|
1 => elapsedMs >= initialDelay,
|
|
_ => elapsedMs >= repeatDelay,
|
|
};
|
|
}
|
|
}
|