From cd740532f2b6957c79cea773f102d95121bf8848 Mon Sep 17 00:00:00 2001 From: mintey Date: Sun, 11 Apr 2021 22:53:48 +0300 Subject: [PATCH] added delay to keypresses for reliability --- smol_gkos.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smol_gkos.ino b/smol_gkos.ino index 9a604f8..5bae790 100644 --- a/smol_gkos.ino +++ b/smol_gkos.ino @@ -506,6 +506,11 @@ void press_key(int key) { // keypress Keyboard.press(key); + // small delay since slower computers can drop quick inputs + // this is very much a hack, and probably messes with the debouncing etc. + // but pending a debouncing rewrite to a timer-based system this should + // work in the meanwhile provided you don't type too quickly + delay(50); Keyboard.release(key); // release modifiers