Unify key press and mouse button press timings

Both now use Ints for presses.
Still no release timer for keyboard events.
This commit is contained in:
2025-07-28 23:16:05 +01:00
parent ea35753744
commit 81f88c32e9
15 changed files with 52 additions and 58 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ doTextInputOver u p x =
backspaceInputted :: Input -> Bool
backspaceInputted u = case u ^. pressedKeys . at ScancodeBackspace of
Just InitialPress -> True
Just LongPress -> True
Just 0 -> True
Just x | x >= 30 -> True
_ -> False
doBackspace :: String -> String