fix comments grammar

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2026-06-12 09:13:38 +08:00
commit 5eed73d064

View file

@ -19,10 +19,10 @@ static mut LAYOUT: HKL = std::ptr::null_mut();
/// The dwExtraInfo value in keyboard and mouse structure that used in SendInput()
pub const ENIGO_INPUT_EXTRA_VALUE: ULONG_PTR = 100;
// Empirical testing against Notepad showed corrupted input with 0ms, 5ms and 10ms
// delays, while 15ms, and 20ms behaved correctly. Use 20ms as a conservative
// default to avoid regressions while keeping latency low; revisit this
// if further testing shows smaller values are reliable.
// Empirical testing against Notepad showed corrupted input with 0ms, 5ms, and 10ms
// delays, while 15ms and 20ms behaved correctly. Use 20ms as a conservative
// default to avoid regressions while keeping latency low; revisit this if further
// testing shows smaller values are reliable.
const UNICODE_KEY_SEQUENCE_DELAY: Duration = Duration::from_millis(20);
fn mouse_event(flags: u32, data: u32, dx: i32, dy: i32) -> DWORD {