this is the delay in milliseconds between keypresses or mouse clicks defaults to zero
()
| 237 | // this is the delay in milliseconds between keypresses or mouse clicks |
| 238 | // defaults to zero |
| 239 | func InputDelay() int { |
| 240 | delayStr := os.Getenv("INPUT_DELAY") |
| 241 | if delayStr == "" { |
| 242 | return 0 |
| 243 | } |
| 244 | |
| 245 | delay, err := strconv.Atoi(delayStr) |
| 246 | if err != nil { |
| 247 | panic(err) |
| 248 | } |
| 249 | return delay |
| 250 | } |