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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user