mirror of
https://github.com/He4eT/DotDashPit.git
synced 2026-05-04 17:37:23 +00:00
game: rename idle timeout constant
This commit is contained in:
parent
2c5465222e
commit
3c7286c7f5
1 changed files with 2 additions and 2 deletions
4
game.js
4
game.js
|
|
@ -11,7 +11,7 @@
|
|||
/* Config */
|
||||
|
||||
const DOT_DASH_THRESHOLD = 200
|
||||
const IDLE_TIMEOUT = 500
|
||||
const DOT_DASH_IDLE_TIMEOUT = 500
|
||||
|
||||
const HINT_DISTANCE = 30
|
||||
|
||||
|
|
@ -213,7 +213,7 @@ function handleMorse() {
|
|||
if (
|
||||
!buttonPressed &&
|
||||
key.buffer.length > 0 &&
|
||||
now - key.upAt > IDLE_TIMEOUT
|
||||
now - key.upAt > DOT_DASH_IDLE_TIMEOUT
|
||||
) {
|
||||
if (morseToLetter[key.buffer]) {
|
||||
const letter = morseToLetter[key.buffer]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue